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)
commit5ee15c101f29e0093ffb5448773ccbc786eb313b
tree283721c8b9eb6a4f2d6bf36fa596485f3ce32a6f
parent796fff0c12b238f57868938577abc495b5b8c3aa
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: 05c773f52b96e ("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