]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
team: use netdev_features_t instead of u32
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 4 Jun 2018 14:46:01 +0000 (17:46 +0300)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 5 Sep 2018 08:30:45 +0000 (10:30 +0200)
BugLink: http://bugs.launchpad.net/bugs/1789666
[ Upstream commit 25ea66544bfd1d9df1b7e1502f8717e85fa1e6e6 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/net/team/team.c

index 3175f7410bafa6ecc7f524549c8ab2680fcfe118..8f3863cd0094f865328ea6630915ce704046d4ef 100644 (file)
@@ -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 |