]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: raise XDP MTU to 1508
authorMatteo Croce <mcroce@redhat.com>
Thu, 11 Apr 2019 10:26:32 +0000 (12:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Apr 2019 18:10:34 +0000 (11:10 -0700)
commit1c2b53f1b34446f793da705eda3c6c736dad167a
tree283721c8b9eb6a4f2d6bf36fa596485f3ce32a6f
parente72d4ad39c922f466913ec0c5ac4967be447adac
net: thunderx: raise XDP MTU to 1508

The thunderx driver splits frames bigger than 1530 bytes to multiple
pages, making impossible to run an eBPF program on it.
This leads to a maximum MTU of 1508 if QinQ is in use.

The thunderx driver forbids to load an eBPF program if the MTU is higher
than 1500 bytes. Raise the limit to 1508 so it is possible to use L2
protocols which need some more headroom.

Fixes: cf7916084dece ("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>
drivers/net/ethernet/cavium/thunder/nicvf_main.c