Commit e8441b1
mlxsw: pci: Do not store SKB for RDQ elements
The previous patch used page pool to allocate buffers for RDQ. With this
change, 'elem_info->u.rdq.skb' is not used anymore, as we do not allocate
SKB before getting the packet, we hold page pointer and build the SKB
around it once packet is received.
Remove the union and store SKB pointer for SDQ only.
Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/23a531008936dc9a1a298643fb1e4f9a7b8e6eb3.1718709196.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 0f3cd43 commit e8441b1
1 file changed
+7
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
75 | 70 | | |
76 | 71 | | |
77 | 72 | | |
| |||
557 | 552 | | |
558 | 553 | | |
559 | 554 | | |
560 | | - | |
561 | | - | |
| 555 | + | |
| 556 | + | |
562 | 557 | | |
563 | 558 | | |
564 | 559 | | |
| |||
573 | 568 | | |
574 | 569 | | |
575 | 570 | | |
576 | | - | |
| 571 | + | |
577 | 572 | | |
578 | 573 | | |
579 | 574 | | |
| |||
2007 | 2002 | | |
2008 | 2003 | | |
2009 | 2004 | | |
2010 | | - | |
| 2005 | + | |
2011 | 2006 | | |
2012 | 2007 | | |
2013 | 2008 | | |
| |||
0 commit comments