Re: [PATCH v4 net-next 2/4] mlx4: xdp: Allow raising MTU up to one page minus eth and vlan hdrs

2016-12-08 Thread Saeed Mahameed
On Thu, Dec 8, 2016 at 1:53 AM, Martin KaFai Lau wrote: > When XDP is active in mlx4, mlx4 is using one page/pkt. > At the same time (i.e. when XDP is active), it is currently > limiting MTU to be FRAG_SZ0 - ETH_HLEN - (2 * VLAN_HLEN) > which is 1514 in x86. AFAICT, we can at least

[PATCH v4 net-next 2/4] mlx4: xdp: Allow raising MTU up to one page minus eth and vlan hdrs

2016-12-07 Thread Martin KaFai Lau
When XDP is active in mlx4, mlx4 is using one page/pkt. At the same time (i.e. when XDP is active), it is currently limiting MTU to be FRAG_SZ0 - ETH_HLEN - (2 * VLAN_HLEN) which is 1514 in x86. AFAICT, we can at least raise the MTU limit up to PAGE_SIZE - ETH_HLEN - (2 * VLAN_HLEN) which this