[PATCH 2/2] net: Replace dev_kfree_skb_any by dev_consume_skb_any

2019-02-13 Thread Huang Zijiang
The skb should be freed by dev_consume_skb_any() efx_tx_tso_fallback() when skb is still used. The skb is be replaced by segments, so the original skb should be consumed(not drop). Signed-off-by: Huang Zijiang --- drivers/net/ethernet/sfc/tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] net: hns: Fix object reference leaks in hns_dsaf_roce_reset()

2019-02-13 Thread Huang Zijiang
The of_find_device_by_node() takes a reference to the underlying device structure, we should release that reference. Signed-off-by: Huang Zijiang --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns

[PATCH] net:dl2k: Replace dev_kfree_skb_irq by dev_consume_skb_irq

2019-02-13 Thread Huang Zijiang
dev_consume_skb_irq() should be called when skb xmit done.It makes drop profiles more friendly. Signed-off-by: Huang Zijiang --- drivers/net/ethernet/dlink/dl2k.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/dlink/dl2k.c b/drivers/net/ethernet/dlink

[PATCH 1/2] net:ethernet:cadence: Replace dev_kfree_skb_any by dev_consume_skb_any

2019-02-13 Thread Huang Zijiang
The skb should be freed by dev_consume_skb_any() in macb_pad_and_fcs() when *skb is still used. The *skb is be replaced by nskb, so the original *skb should be consumed(not drop). Signed-off-by: Huang Zijiang --- drivers/net/ethernet/cadence/macb_main.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH] net:dl2k: Modify the code style escaping the warning

2019-02-13 Thread Huang Zijiang
modify the code style in order to removing the following warning when excute the script checkpatch.pl WARNING: space prohibited between function name and open parenthesis '(' Signed-off-by: Huang Zijiang --- drivers/net/ethernet/dlink/dl2k.c | 4 ++-- 1 file changed, 2 insert

[PATCH] isdn:hisax: Replace dev_kfree_skb_any by dev_consume_skb_any

2019-02-13 Thread Huang Zijiang
The skb should be freed by dev_consume_skb_any() in hfcpci_fill_fifo() when bcs->tx_skb is still used. The bcs->tx_skb is be replaced by skb_dequeue(&bcs->squeue), so the original bcs->tx_skb should be consumed(not drop). Signed-off-by: Huang Zijiang --- drivers/isdn/hisax/hfc