Skip to content

Commit e2585ea

Browse files
Aviad Krawczykdavem330
authored andcommitted
net-next/hinic: Add Rx handler
Set the io resources in the nic and handle rx events by qp operations. Signed-off-by: Aviad Krawczyk <[email protected]> Signed-off-by: Zhao Chen <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7ef37fe commit e2585ea

16 files changed

+1278
-0
lines changed

drivers/net/ethernet/huawei/hinic/hinic_dev.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ struct hinic_dev {
4343
struct hinic_hwdev *hwdev;
4444

4545
u32 msg_enable;
46+
unsigned int rx_weight;
4647

4748
unsigned int flags;
4849

drivers/net/ethernet/huawei/hinic/hinic_hw_csr.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#define HINIC_CSR_FUNC_ATTR0_ADDR 0x0
2121
#define HINIC_CSR_FUNC_ATTR1_ADDR 0x4
2222

23+
#define HINIC_CSR_FUNC_ATTR4_ADDR 0x10
2324
#define HINIC_CSR_FUNC_ATTR5_ADDR 0x14
2425

2526
#define HINIC_DMA_ATTR_BASE 0xC80

0 commit comments

Comments
 (0)