Commit 1dc4c55
bnxt: adding bnxt_xdp_build_skb to build skb from multibuffer xdp_buff
Since we have an xdp_buff with frags there needs to be a way to
convert that into a valid sk_buff in the event that XDP_PASS is
the resulting operation. This adds a new rx_skb_func when the
netdev has an MTU that prevents the packets from sitting in a
single page.
This also make sure that GRO/LRO stay disabled even when using
the aggregation ring for large buffers.
v3: Use BNXT_PAGE_MODE_BUF_SIZE for build_skb
Signed-off-by: Andy Gospodarek <gospo@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 9a6aa35 commit 1dc4c55
File tree
3 files changed
+85
-7
lines changed- drivers/net/ethernet/broadcom/bnxt
3 files changed
+85
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
971 | 971 | | |
972 | 972 | | |
973 | 973 | | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
974 | 1007 | | |
975 | 1008 | | |
976 | 1009 | | |
| |||
993 | 1026 | | |
994 | 1027 | | |
995 | 1028 | | |
996 | | - | |
997 | 1029 | | |
998 | 1030 | | |
999 | 1031 | | |
| |||
1004 | 1036 | | |
1005 | 1037 | | |
1006 | 1038 | | |
| 1039 | + | |
1007 | 1040 | | |
1008 | 1041 | | |
1009 | 1042 | | |
| |||
1949 | 1982 | | |
1950 | 1983 | | |
1951 | 1984 | | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
1952 | 1993 | | |
1953 | 1994 | | |
1954 | 1995 | | |
| |||
3964 | 4005 | | |
3965 | 4006 | | |
3966 | 4007 | | |
3967 | | - | |
3968 | | - | |
3969 | | - | |
3970 | | - | |
3971 | 4008 | | |
3972 | | - | |
| 4009 | + | |
| 4010 | + | |
| 4011 | + | |
| 4012 | + | |
| 4013 | + | |
| 4014 | + | |
| 4015 | + | |
| 4016 | + | |
| 4017 | + | |
| 4018 | + | |
| 4019 | + | |
| 4020 | + | |
| 4021 | + | |
3973 | 4022 | | |
3974 | | - | |
3975 | 4023 | | |
3976 | 4024 | | |
3977 | 4025 | | |
| |||
11121 | 11169 | | |
11122 | 11170 | | |
11123 | 11171 | | |
| 11172 | + | |
| 11173 | + | |
| 11174 | + | |
11124 | 11175 | | |
11125 | 11176 | | |
11126 | 11177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
31 | 35 | | |
0 commit comments