File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2081,6 +2081,7 @@ static void team_setup(struct net_device *dev)
2081
2081
dev -> flags |= IFF_MULTICAST ;
2082
2082
dev -> priv_flags &= ~(IFF_XMIT_DST_RELEASE | IFF_TX_SKB_SHARING );
2083
2083
dev -> priv_flags |= IFF_NO_QUEUE ;
2084
+ dev -> priv_flags |= IFF_TEAM ;
2084
2085
2085
2086
/*
2086
2087
* Indicate we support unicast address filtering. That way core won't
Original file line number Diff line number Diff line change @@ -1271,6 +1271,7 @@ struct net_device_ops {
1271
1271
* @IFF_NO_QUEUE: device can run without qdisc attached
1272
1272
* @IFF_OPENVSWITCH: device is a Open vSwitch master
1273
1273
* @IFF_L3MDEV_SLAVE: device is enslaved to an L3 master device
1274
+ * @IFF_TEAM: device is a team device
1274
1275
*/
1275
1276
enum netdev_priv_flags {
1276
1277
IFF_802_1Q_VLAN = 1 <<0 ,
@@ -1297,6 +1298,7 @@ enum netdev_priv_flags {
1297
1298
IFF_NO_QUEUE = 1 <<21 ,
1298
1299
IFF_OPENVSWITCH = 1 <<22 ,
1299
1300
IFF_L3MDEV_SLAVE = 1 <<23 ,
1301
+ IFF_TEAM = 1 <<24 ,
1300
1302
};
1301
1303
1302
1304
#define IFF_802_1Q_VLAN IFF_802_1Q_VLAN
@@ -1323,6 +1325,7 @@ enum netdev_priv_flags {
1323
1325
#define IFF_NO_QUEUE IFF_NO_QUEUE
1324
1326
#define IFF_OPENVSWITCH IFF_OPENVSWITCH
1325
1327
#define IFF_L3MDEV_SLAVE IFF_L3MDEV_SLAVE
1328
+ #define IFF_TEAM IFF_TEAM
1326
1329
1327
1330
/**
1328
1331
* struct net_device - The DEVICE structure.
@@ -3974,6 +3977,11 @@ static inline bool netif_is_ovs_master(const struct net_device *dev)
3974
3977
return dev -> priv_flags & IFF_OPENVSWITCH ;
3975
3978
}
3976
3979
3980
+ static inline bool netif_is_team_master (struct net_device * dev )
3981
+ {
3982
+ return dev -> priv_flags & IFF_TEAM ;
3983
+ }
3984
+
3977
3985
/* This device needs to keep skb dst for qdisc enqueue or ndo_start_xmit() */
3978
3986
static inline void netif_keep_dst (struct net_device * dev )
3979
3987
{
You can’t perform that action at this time.
0 commit comments