mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
net: wangxun: don't advertise IFF_SUPP_NOFCS
Like commit a24162f18825("i40e: don't advertise IFF_SUPP_NOFCS"),
ngbe and txgbe also advertises IFF_SUPP_NOFCS and allowing users
to use the SO_NOFCS socket option. But the driver does not check
skb->no_fcs, so this option is silently ignored.
With this change, send() fails with -EPROTONOSUPPORT when AF_PACKET
socket is set SO_NOFCS option.
Signed-off-by: Rongguang Wei <weirongguang@kylinos.cn>
Link: https://patch.msgid.link/20260617092854.133992-1-clementwei90@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
4045f1c3d6
commit
0ec4b78598
|
|
@ -715,7 +715,6 @@ static int ngbe_probe(struct pci_dev *pdev,
|
|||
netdev->features |= NETIF_F_GRO;
|
||||
|
||||
netdev->priv_flags |= IFF_UNICAST_FLT;
|
||||
netdev->priv_flags |= IFF_SUPP_NOFCS;
|
||||
netdev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
|
||||
|
||||
netdev->min_mtu = ETH_MIN_MTU;
|
||||
|
|
|
|||
|
|
@ -796,7 +796,6 @@ static int txgbe_probe(struct pci_dev *pdev,
|
|||
netdev->features |= NETIF_F_RX_UDP_TUNNEL_PORT;
|
||||
|
||||
netdev->priv_flags |= IFF_UNICAST_FLT;
|
||||
netdev->priv_flags |= IFF_SUPP_NOFCS;
|
||||
netdev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
|
||||
|
||||
netdev->min_mtu = ETH_MIN_MTU;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user