Dan Carpenter
183514f7c5
net: libwx: fix an error code in wx_alloc_page_pool()
...
This function always returns success. We need to preserve the error
code before setting rx_ring->page_pool = NULL.
Fixes: 850b971110 ("net: libwx: Allocate Rx and Tx resources")
Signed-off-by: Dan Carpenter <error27@gmail.com >
Link: https://lore.kernel.org/r/Y+T4aoefc1XWvGYb@kili
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2023-02-10 19:37:13 -08:00
Yang Li
3ca11619a3
net: libwx: Remove unneeded semicolon
...
./drivers/net/ethernet/wangxun/libwx/wx_lib.c:683:2-3: Unneeded semicolon
Reported-by: Abaci Robot <abaci@linux.alibaba.com >
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3976
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com >
Link: https://lore.kernel.org/r/20230208004959.47553-1-yang.lee@linux.alibaba.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2023-02-08 20:50:31 -08:00
Yang Li
f978fa41f6
net: libwx: clean up one inconsistent indenting
...
drivers/net/ethernet/wangxun/libwx/wx_lib.c:1835 wx_setup_all_rx_resources() warn: inconsistent indenting
Reported-by: Abaci Robot <abaci@linux.alibaba.com >
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3981
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com >
Link: https://lore.kernel.org/r/20230208013227.111605-1-yang.lee@linux.alibaba.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org >
2023-02-08 20:49:38 -08:00
Mengyuan Lou
09a5088009
net: libwx: Add tx path to process packets
...
Support to transmit packets without hardware features.
Signed-off-by: Mengyuan Lou <mengyuanlou@net-swift.com >
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2023-02-06 09:22:48 +00:00
Jiawen Wu
3c47e8ae11
net: libwx: Support to receive packets in NAPI
...
Clean all queues associated with a q_vector, to simple receive packets
without hardware features.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2023-02-06 09:22:48 +00:00
Jiawen Wu
850b971110
net: libwx: Allocate Rx and Tx resources
...
Setup Rx and Tx descriptors for specefic rings.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2023-02-06 09:22:48 +00:00
Mengyuan Lou
3f70318611
net: libwx: Add irq flow functions
...
Add irq flow functions for ngbe and txgbe.
Alloc pcie msix irqs for drivers, otherwise fall back to msi/legacy.
Signed-off-by: Mengyuan Lou <mengyuanlou@net-swift.com >
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2023-02-06 09:22:48 +00:00