diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2015-08-06 07:44:02 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-10 07:48:08 +0200 |
commit | 1525c386a1f01612c6f3f27241113d7fc8e6d72d (patch) | |
tree | d458fe594c576cde15ec69354e206932db13b352 /include | |
parent | net:wimax: Fix doucble word "the the" in networking.xml (diff) | |
download | linux-1525c386a1f01612c6f3f27241113d7fc8e6d72d.tar.xz linux-1525c386a1f01612c6f3f27241113d7fc8e6d72d.zip |
net: switchdev: change fdb addr for a byte array
The address in the switchdev_obj_fdb structure is currently represented
as a pointer. Replacing it for a 6-byte array allows switchdev to carry
addresses directly read from hardware registers, not stored by the
switch chip driver (as in Rocker).
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/switchdev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/switchdev.h b/include/net/switchdev.h index 89da8934519b..e90e1a0fa579 100644 --- a/include/net/switchdev.h +++ b/include/net/switchdev.h @@ -70,7 +70,7 @@ struct switchdev_obj { u32 tb_id; } ipv4_fib; struct switchdev_obj_fdb { /* PORT_FDB */ - const unsigned char *addr; + u8 addr[ETH_ALEN]; u16 vid; } fdb; } u; |