diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-06-04 17:43:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-04 17:30:04 -0400 |
commit | a746407af158e0c9a5f1078a3b3de11b0c77cf03 (patch) | |
tree | c6e96c2a66926face3afa85511ed9175456b2880 /drivers | |
parent | ff2e351e1928b5b81a23d78e3e4effc24db007b9 (diff) | |
download | linux-stable-a746407af158e0c9a5f1078a3b3de11b0c77cf03.tar.gz linux-stable-a746407af158e0c9a5f1078a3b3de11b0c77cf03.tar.bz2 linux-stable-a746407af158e0c9a5f1078a3b3de11b0c77cf03.zip |
net_failover: Use netdev_features_t instead of u32
The features mask needs to be a netdev_features_t (u64) because a u32
is not big enough.
Fixes: cfc80d9a1163 ("net: Introduce net_failover driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/net_failover.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/net_failover.c b/drivers/net/net_failover.c index 8b508e2cf29b..83f7420ddea5 100644 --- a/drivers/net/net_failover.c +++ b/drivers/net/net_failover.c @@ -380,7 +380,8 @@ static rx_handler_result_t net_failover_handle_frame(struct sk_buff **pskb) static void net_failover_compute_features(struct net_device *dev) { - u32 vlan_features = FAILOVER_VLAN_FEATURES & NETIF_F_ALL_FOR_ALL; + netdev_features_t vlan_features = FAILOVER_VLAN_FEATURES & + NETIF_F_ALL_FOR_ALL; netdev_features_t enc_features = FAILOVER_ENC_FEATURES; unsigned short max_hard_header_len = ETH_HLEN; unsigned int dst_release_flag = IFF_XMIT_DST_RELEASE | |