diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/if.h | 1 | ||||
-rw-r--r-- | include/linux/netdevice.h | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/if.h b/include/linux/if.h index a023ec1274fe..8018c2e22c0c 100644 --- a/include/linux/if.h +++ b/include/linux/if.h | |||
@@ -60,6 +60,7 @@ | |||
60 | #define IFF_MASTER_8023AD 0x8 /* bonding master, 802.3ad. */ | 60 | #define IFF_MASTER_8023AD 0x8 /* bonding master, 802.3ad. */ |
61 | #define IFF_MASTER_ALB 0x10 /* bonding master, balance-alb. */ | 61 | #define IFF_MASTER_ALB 0x10 /* bonding master, balance-alb. */ |
62 | #define IFF_BONDING 0x20 /* bonding master or slave */ | 62 | #define IFF_BONDING 0x20 /* bonding master or slave */ |
63 | #define IFF_SLAVE_NEEDARP 0x40 /* need ARPs for validation */ | ||
63 | 64 | ||
64 | #define IF_GET_IFACE 0x0001 /* for querying only */ | 65 | #define IF_GET_IFACE 0x0001 /* for querying only */ |
65 | #define IF_GET_PROTO 0x0002 | 66 | #define IF_GET_PROTO 0x0002 |
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 43289127b458..afd80eff2725 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -1016,7 +1016,8 @@ static inline int netif_needs_gso(struct net_device *dev, struct sk_buff *skb) | |||
1016 | } | 1016 | } |
1017 | 1017 | ||
1018 | /* On bonding slaves other than the currently active slave, suppress | 1018 | /* On bonding slaves other than the currently active slave, suppress |
1019 | * duplicates except for 802.3ad ETH_P_SLOW and alb non-mcast/bcast. | 1019 | * duplicates except for 802.3ad ETH_P_SLOW, alb non-mcast/bcast, and |
1020 | * ARP on active-backup slaves with arp_validate enabled. | ||
1020 | */ | 1021 | */ |
1021 | static inline int skb_bond_should_drop(struct sk_buff *skb) | 1022 | static inline int skb_bond_should_drop(struct sk_buff *skb) |
1022 | { | 1023 | { |
@@ -1025,6 +1026,10 @@ static inline int skb_bond_should_drop(struct sk_buff *skb) | |||
1025 | 1026 | ||
1026 | if (master && | 1027 | if (master && |
1027 | (dev->priv_flags & IFF_SLAVE_INACTIVE)) { | 1028 | (dev->priv_flags & IFF_SLAVE_INACTIVE)) { |
1029 | if ((dev->priv_flags & IFF_SLAVE_NEEDARP) && | ||
1030 | skb->protocol == __constant_htons(ETH_P_ARP)) | ||
1031 | return 0; | ||
1032 | |||
1028 | if (master->priv_flags & IFF_MASTER_ALB) { | 1033 | if (master->priv_flags & IFF_MASTER_ALB) { |
1029 | if (skb->pkt_type != PACKET_BROADCAST && | 1034 | if (skb->pkt_type != PACKET_BROADCAST && |
1030 | skb->pkt_type != PACKET_MULTICAST) | 1035 | skb->pkt_type != PACKET_MULTICAST) |