linux_dsm_epyc7002/drivers/net/ethernet/cavium
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
..
common net: cavium: clean up return value check in cavium_ptp_probe 2018-11-23 17:26:07 -08:00
liquidio net: lio_core: fix two NULL pointer dereferences 2019-03-11 12:29:17 -07:00
octeon net: ethernet: Convert phydev advertize and supported from u32 to link mode 2018-11-11 10:10:01 -08:00
thunder net: thunderx: don't allow jumbo frames with XDP 2019-04-11 11:10:34 -07:00
Kconfig net: devlink: turn devlink into a built-in 2019-02-26 08:49:05 -08:00
Makefile net: add support for Cavium PTP coprocessor 2018-01-16 14:31:14 -05:00