]> git.ipfire.org Git - thirdparty/linux.git/commit
net: wangxun: don't advertise IFF_SUPP_NOFCS
authorRongguang Wei <weirongguang@kylinos.cn>
Wed, 17 Jun 2026 09:28:54 +0000 (17:28 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 19 Jun 2026 01:18:11 +0000 (18:18 -0700)
commit0ec4b785987049031db437ef9d5bb962706b69bb
tree2130755375ec159d1d2cc5bbb8718964dfcdcb38
parent4045f1c3d68ef4b589ae2587e6ff66ce8017daf2
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>
drivers/net/ethernet/wangxun/ngbe/ngbe_main.c
drivers/net/ethernet/wangxun/txgbe/txgbe_main.c