Marek Behún
7b1b62bc1e
net: marvell: mvpp2: increase MTU limit when XDP enabled
...
Currently mvpp2_xdp_setup won't allow attaching XDP program if
mtu > ETH_DATA_LEN (1500).
The mvpp2_change_mtu on the other hand checks whether
MVPP2_RX_PKT_SIZE(mtu) > MVPP2_BM_LONG_PKT_SIZE.
These two checks are semantically different.
Moreover this limit can be increased to MVPP2_MAX_RX_BUF_SIZE, since in
mvpp2_rx we have
xdp.data = data + MVPP2_MH_SIZE + MVPP2_SKB_HEADROOM;
xdp.frame_sz = PAGE_SIZE;
Change the checks to check whether
mtu > MVPP2_MAX_RX_BUF_SIZE
Fixes: 07dd0a7aae ("mvpp2: add basic XDP support")
Signed-off-by: Marek Behún <kabel@kernel.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2021-11-23 12:37:09 +00:00
..
2021-11-10 11:52:40 -08:00
2021-11-04 08:21:47 -07:00
2021-11-12 08:05:47 +09:00
2021-11-11 13:09:33 +01:00
2021-11-06 14:36:12 -07:00
2021-11-09 11:24:08 -08:00
2021-11-04 09:09:37 -07:00
2021-11-13 09:11:33 -08:00
2021-11-01 10:09:14 -07:00
2021-11-04 08:21:47 -07:00
2021-11-14 11:11:51 -08:00
2021-11-02 11:24:14 -07:00
2021-10-30 10:54:47 +02:00
2021-11-04 19:48:47 +01:00
2021-11-03 17:00:52 -07:00
2021-11-06 14:36:12 -07:00
2021-11-08 11:49:48 -08:00
2021-11-10 14:06:51 +01:00
2021-11-10 11:47:55 -08:00
2021-11-12 12:11:07 -08:00
2021-11-01 15:02:49 -07:00
2021-10-27 14:13:39 +09:00
2021-11-05 08:42:02 -07:00
2021-11-10 16:15:54 -08:00
2021-11-08 11:55:21 -08:00
2021-11-12 12:11:07 -08:00
2021-11-05 08:31:51 -07:00
2021-11-04 13:56:55 -07:00
2021-11-15 12:35:56 +00:00
2021-11-06 14:08:17 -07:00
2021-10-27 11:46:01 -06:00
2021-11-10 11:52:40 -08:00
2021-11-10 11:36:43 -08:00
2021-11-05 08:42:02 -07:00
2021-11-12 11:53:16 -08:00
2021-11-06 14:36:12 -07:00
2021-11-12 16:09:51 +00:00
2021-11-06 14:08:17 -07:00
2021-10-29 23:03:09 -05:00
2021-11-09 11:24:08 -08:00
2021-11-10 11:52:40 -08:00
2021-11-06 14:36:12 -07:00
2021-11-10 11:36:43 -08:00
2021-11-10 11:52:40 -08:00
2021-11-06 14:08:17 -07:00
2021-10-26 19:12:01 +02:00
2021-11-09 11:24:08 -08:00
2021-11-23 12:37:09 +00:00
2021-11-07 19:37:04 +00:00
2021-11-10 10:56:02 -08:00
2021-11-09 11:20:07 -08:00
2021-11-14 11:11:51 -08:00
2021-11-14 10:38:27 -08:00
2021-11-02 06:20:58 -07:00
2021-11-02 15:58:39 -07:00
2021-11-04 08:21:47 -07:00
2021-11-05 08:24:17 -07:00
2021-11-10 11:36:43 -08:00
2021-11-02 16:48:47 +01:00
2021-11-18 12:12:55 +00:00
2021-11-05 11:57:13 +01:00
2021-11-06 13:30:33 -07:00
2021-11-08 12:07:52 -08:00
2021-11-03 17:00:52 -07:00
2021-11-10 09:07:26 -08:00
2021-11-12 11:44:31 -08:00
2021-11-08 14:17:49 +01:00
2021-11-12 12:25:50 -08:00
2021-11-10 16:15:54 -08:00
2021-11-01 19:09:04 -07:00
2021-11-10 16:15:54 -08:00
2021-11-12 12:25:50 -08:00
2021-11-04 08:21:47 -07:00
2021-11-12 10:56:25 -08:00
2021-10-25 13:17:29 +02:00
2021-11-04 09:09:37 -07:00
2021-10-28 11:22:23 +00:00
2021-11-11 09:40:15 -08:00
2021-11-03 15:00:39 -07:00
2021-11-01 05:26:49 -04:00
2021-11-17 11:04:02 +01:00
2021-11-10 15:32:38 +01:00
2021-11-10 09:41:22 -08:00
2021-11-10 11:14:21 -08:00