linux_dsm_epyc7002/drivers/net/ethernet/cavium/thunder
Matteo Croce 1f227d1608 net: thunderx: don't allow jumbo frames with XDP
The thunderx driver forbids to load an eBPF program if the MTU is too high,
but this can be circumvented by loading the eBPF, then raising the MTU.

Fix this by limiting the MTU if an eBPF program is already loaded.

Fixes: 05c773f52b ("net: thunderx: Add basic XDP support")
Signed-off-by: Matteo Croce <mcroce@redhat.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-04-11 11:10:34 -07:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nic_main.c net: thunderx: remove link change polling code and info from nicpf 2019-02-22 11:43:45 -08:00
nic_reg.h net: thunderx: add timestamping support 2018-01-16 14:31:14 -05:00
nic.h net: thunderx: move link state polling function to VF 2019-02-22 11:43:45 -08:00
nicvf_ethtool.c net: thunderx: mark expected switch fall-through 2018-08-07 17:54:19 -07:00
nicvf_main.c net: thunderx: don't allow jumbo frames with XDP 2019-04-11 11:10:34 -07:00
nicvf_queues.c thunderx: eliminate extra calls to put_page() for pages held for recycling 2019-03-27 22:52:28 -07:00
nicvf_queues.h Revert "net: thunderx: Add support for xdp redirect" 2018-02-14 14:23:39 -05:00
q_struct.h net: thunderx: Optimize RBDR descriptor handling 2017-05-02 15:41:20 -04:00
thunder_bgx.c net: thunderx: correct typo in macro name 2019-02-22 11:43:44 -08:00
thunder_bgx.h net: thunderx: correct typo in macro name 2019-02-22 11:43:44 -08:00
thunder_xcv.c net: ethernet: cavium: Correct Cavium Thunderx NIC driver names accordingly to module name 2018-01-29 12:22:06 -05:00