diff options
author | Benjamin Poirier <bpoirier@nvidia.com> | 2022-09-07 16:56:39 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-09-16 14:34:01 +0100 |
commit | 1d9a143ee3408349700f44a9197b7ae0e4faae5d (patch) | |
tree | 6bacb0280d44d2a3e9607a213e236e3ff3c755f6 /include | |
parent | 21be1ad637493f960ea754399d86f65f7e260250 (diff) | |
download | linux-1d9a143ee3408349700f44a9197b7ae0e4faae5d.tar.bz2 |
net: bonding: Share lacpdu_mcast_addr definition
There are already a few definitions of arrays containing
MULTICAST_LACPDU_ADDR and the next patch will add one more use. These all
contain the same constant data so define one common instance for all
bonding code.
Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/bond_3ad.h | 2 | ||||
-rw-r--r-- | include/net/bonding.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/net/bond_3ad.h b/include/net/bond_3ad.h index be2992e6de5d..a016f275cb01 100644 --- a/include/net/bond_3ad.h +++ b/include/net/bond_3ad.h @@ -15,8 +15,6 @@ #define PKT_TYPE_LACPDU cpu_to_be16(ETH_P_SLOW) #define AD_TIMER_INTERVAL 100 /*msec*/ -#define MULTICAST_LACPDU_ADDR {0x01, 0x80, 0xC2, 0x00, 0x00, 0x02} - #define AD_LACP_SLOW 0 #define AD_LACP_FAST 1 diff --git a/include/net/bonding.h b/include/net/bonding.h index afd606df149a..e999f851738b 100644 --- a/include/net/bonding.h +++ b/include/net/bonding.h @@ -786,6 +786,9 @@ extern struct rtnl_link_ops bond_link_ops; /* exported from bond_sysfs_slave.c */ extern const struct sysfs_ops slave_sysfs_ops; +/* exported from bond_3ad.c */ +extern const u8 lacpdu_mcast_addr[]; + static inline netdev_tx_t bond_tx_drop(struct net_device *dev, struct sk_buff *skb) { dev_core_stats_tx_dropped_inc(dev); |