summaryrefslogtreecommitdiffstats
path: root/drivers/net/team
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-06-04 16:46:01 +0200
committerDavid S. Miller <davem@davemloft.net>2018-06-04 23:30:04 +0200
commit25ea66544bfd1d9df1b7e1502f8717e85fa1e6e6 (patch)
treec62cfd5a59d9382f4f505931335d9b714254d0ef /drivers/net/team
parentnet_failover: Use netdev_features_t instead of u32 (diff)
downloadlinux-25ea66544bfd1d9df1b7e1502f8717e85fa1e6e6.tar.xz
linux-25ea66544bfd1d9df1b7e1502f8717e85fa1e6e6.zip
team: use netdev_features_t instead of u32
This code was introduced in 2011 around the same time that we made netdev_features_t a u64 type. These days a u32 is not big enough to hold all the potential features. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/team')
-rw-r--r--drivers/net/team/team.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c
index 267dcc929f6c..8863fa023500 100644
--- a/drivers/net/team/team.c
+++ b/drivers/net/team/team.c
@@ -1004,7 +1004,8 @@ static void team_port_disable(struct team *team,
static void __team_compute_features(struct team *team)
{
struct team_port *port;
- u32 vlan_features = TEAM_VLAN_FEATURES & NETIF_F_ALL_FOR_ALL;
+ netdev_features_t vlan_features = TEAM_VLAN_FEATURES &
+ NETIF_F_ALL_FOR_ALL;
netdev_features_t enc_features = TEAM_ENC_FEATURES;
unsigned short max_hard_header_len = ETH_HLEN;
unsigned int dst_release_flag = IFF_XMIT_DST_RELEASE |