mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-13 01:08:50 +00:00
bnx2: Always set ETH_FLAG_TXVLAN
TSO does not work if the VLAN tag is in the packet (non-accelerated). We may be able to remove this restriction in future firmware. Reported-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b7c7d01aae
commit
7c8104774e
@ -7553,6 +7553,10 @@ bnx2_set_flags(struct net_device *dev, u32 data)
|
|||||||
!(data & ETH_FLAG_RXVLAN))
|
!(data & ETH_FLAG_RXVLAN))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
/* TSO with VLAN tag won't work with current firmware */
|
||||||
|
if (!(data & ETH_FLAG_TXVLAN))
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
rc = ethtool_op_set_flags(dev, data, ETH_FLAG_RXHASH | ETH_FLAG_RXVLAN |
|
rc = ethtool_op_set_flags(dev, data, ETH_FLAG_RXHASH | ETH_FLAG_RXVLAN |
|
||||||
ETH_FLAG_TXVLAN);
|
ETH_FLAG_TXVLAN);
|
||||||
if (rc)
|
if (rc)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user