Skip to content

Commit 25ea665

Browse files
Dan Carpenterdavem330
Dan Carpenter
authored andcommitted
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 <[email protected]> Acked-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a746407 commit 25ea665

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/team/team.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,8 @@ static void team_port_disable(struct team *team,
10041004
static void __team_compute_features(struct team *team)
10051005
{
10061006
struct team_port *port;
1007-
u32 vlan_features = TEAM_VLAN_FEATURES & NETIF_F_ALL_FOR_ALL;
1007+
netdev_features_t vlan_features = TEAM_VLAN_FEATURES &
1008+
NETIF_F_ALL_FOR_ALL;
10081009
netdev_features_t enc_features = TEAM_ENC_FEATURES;
10091010
unsigned short max_hard_header_len = ETH_HLEN;
10101011
unsigned int dst_release_flag = IFF_XMIT_DST_RELEASE |

0 commit comments

Comments
 (0)