[PATCH v3] net: core: Use skb_is_gso() in skb_checksum_help()

2020-10-26 Thread Yi Li
No functional changes, just minor refactoring. Signed-off-by: Yi Li --- net/core/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/dev.c b/net/core/dev.c index 82dc6b48e45f..9e7f071b846c 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -3206,7 +3206,7 @@ int

[PATCH v2] net/core/dev.c : Use skb_is_gso

2020-10-25 Thread Yi Li
Trivial fix to use func skb_is_gso in place of test for skb_shinfo(skb)->gso_size. Signed-off-by: Yi Li --- net/core/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/dev.c b/net/core/dev.c index 9499a414d67e..55f66e108059 100644 --- a/net/core/dev.c +++ b/

[PATCH] net treewide: Use skb_is_gso

2020-10-21 Thread Yi Li
(!skb_is_gso(skb)) Signed-off-by: Yi Li --- drivers/net/ethernet/atheros/atlx/atl1.c | 2 +- drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c| 2 +- drivers/net/ethernet/cavium/liquidio/lio_main.c| 2 +- drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 2 +-

Re: [PATCH] bnx2x: correct a mistake when show error code

2020-08-29 Thread Yi Li
It is useless. The original code just tell some error info. and don't show errorcode On 8/29/20, Yi Li wrote: > use rc for error code. > > Signed-off-by: Yi Li > --- > drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 dele

[PATCH] bnx2x: correct a mistake when show error code

2020-08-29 Thread Yi Li
use rc for error code. Signed-off-by: Yi Li --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c index 1426c691c7c4

[PATCH] net: hns3: Fix for geneve tx checksum bug

2020-08-25 Thread Yi Li
ng the checksum in software. Reported-by: Li Bing Signed-off-by: Yi Li --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c

can not sync master interface when bond1 box connected with another bond1 box

2018-10-07 Thread Yi Li
Hi guys, I encountered this problem when using bonding with mode1. I have two linux box, they both have two nics, and i setup these two nics with bond1 mode on each linux box. And then I connected these two linux box with each other. And then , I found , sometimes, Box A select

Why ebt_dnat.c doesn't need to re-search fdb after changing dmac?

2018-05-13 Thread Yi Li
Hi List, As the subject stated, I didn't find the clue. If we add dnat into NF_BR_LOCAL_OUT, and change the destination mac of our locally generated packets. In theory , we need to re-search the fdb hash with new dmac as parameter, in order to get the right bridge port to send packets out