Yunsheng Lin
26f1ccdf60
net: hns3: minor refactor related to desc_cb handling
...
desc_cb is used to store mapping and freeing info for the
corresponding desc, which is used in the cleaning process.
There will be more desc_cb type coming up when supporting the
tx bounce buffer, change desc_cb type to bit-wise value in order
to reduce the desc_cb type checking operation in the data path.
Also move the desc_cb type definition to hns3_enet.h because it
is only used in hns3_enet.c, and declare a local variable desc_cb
in hns3_clear_desc() to reduce lines of code.
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com >
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2021-06-16 00:36:06 -07:00
..
2021-05-19 12:17:30 -07:00
2021-05-19 12:17:31 -07:00
2021-05-07 00:26:34 -07:00
2021-04-13 14:35:02 -07:00
2021-04-13 14:35:02 -07:00
2021-05-19 12:17:30 -07:00
2021-04-13 14:35:02 -07:00
2021-06-09 15:35:48 -07:00
2021-05-19 12:17:30 -07:00
2021-05-19 12:17:30 -07:00
2021-05-17 14:12:38 -07:00
2021-05-27 16:06:46 -07:00
2021-06-07 14:07:22 -07:00
2021-05-17 14:12:38 -07:00
2021-06-07 14:07:22 -07:00
2021-05-17 14:12:38 -07:00
2021-05-27 09:55:10 -07:00
2021-06-07 13:01:52 -07:00
2021-05-03 13:23:00 -07:00
2021-06-07 13:20:00 -07:00
2021-04-26 12:48:30 -07:00
2021-06-07 14:03:11 -07:00
2021-05-19 12:17:31 -07:00
2021-04-13 14:35:02 -07:00
2021-05-23 16:16:24 -07:00
2021-06-11 13:08:53 -07:00
2021-05-27 09:55:10 -07:00
2021-05-17 15:38:40 -07:00
2021-06-16 00:36:06 -07:00
2021-05-17 14:12:38 -07:00
2021-06-14 12:56:50 -07:00
2021-06-11 08:47:41 -07:00
2021-06-15 11:29:58 -07:00
2021-05-23 16:13:11 -07:00
2021-06-14 20:58:00 -07:00
2021-06-14 12:54:43 -07:00
2021-05-20 15:25:38 -07:00
2021-05-13 15:58:46 -07:00
2021-06-07 14:08:30 -07:00
2021-04-27 14:10:15 -07:00
2021-06-01 15:54:38 -07:00
2021-05-19 12:17:31 -07:00
2021-06-01 15:29:43 -07:00
2021-06-09 13:55:37 -07:00
2021-06-08 16:36:57 -07:00
2021-04-13 14:35:02 -07:00
2021-05-10 14:58:20 -07:00
2021-05-11 16:20:27 -07:00
2021-06-08 16:31:25 -07:00
2021-06-14 12:43:45 -07:00
2021-05-23 17:23:59 -07:00
2021-06-11 12:54:25 -07:00
2021-06-09 13:51:11 -07:00
2021-04-16 15:15:45 -07:00
2021-05-17 14:12:39 -07:00
2021-05-19 12:17:31 -07:00
2021-05-27 09:55:10 -07:00
2021-06-09 15:24:43 -07:00
2021-05-19 12:17:31 -07:00
2021-05-19 12:17:31 -07:00
2021-05-17 14:12:39 -07:00
2021-06-15 10:25:18 -07:00
2021-05-27 09:55:10 -07:00
2021-06-15 11:50:43 -07:00
2021-03-31 14:34:09 -07:00
2021-05-17 14:12:39 -07:00
2021-06-10 13:53:13 -07:00
2021-06-10 13:53:13 -07:00
2021-05-19 12:17:31 -07:00
2021-06-07 13:05:37 -07:00
2021-04-13 14:35:02 -07:00
2021-05-19 12:17:31 -07:00
2021-04-19 15:58:14 -07:00
2021-05-13 15:54:08 -07:00
2021-06-07 13:05:37 -07:00
2021-04-19 15:24:25 -07:00