Re: [PATCH net-next 2/3] net: hns3: add priv flags support to switch limit promisc mode

2020-12-05 Thread tanhuazhong
On 2020/12/5 10:24, Jakub Kicinski wrote: On Thu, 3 Dec 2020 20:18:55 +0800 Huazhong Tan wrote: @@ -224,6 +224,7 @@ static int hclge_map_unmap_ring_to_vf_vector(struct hclge_vport *vport, bool en, static int hclge_set_vf_promisc_mode(struct hclge_vport *vport,

Re: [PATCH net-next 2/3] net: hns3: add priv flags support to switch limit promisc mode

2020-12-04 Thread Jakub Kicinski
On Thu, 3 Dec 2020 20:18:55 +0800 Huazhong Tan wrote: > @@ -224,6 +224,7 @@ static int hclge_map_unmap_ring_to_vf_vector(struct > hclge_vport *vport, bool en, > static int hclge_set_vf_promisc_mode(struct hclge_vport *vport, >struct hclge_mbx_vf_to_pf_cmd *req)

[PATCH net-next 2/3] net: hns3: add priv flags support to switch limit promisc mode

2020-12-03 Thread Huazhong Tan
From: Jian Shen Currently, the tx unicast promisc is always enabled when promisc mode on. If tx unicast promisc on, a function will receive all unicast packet from other functions belong to the same port. Adds a ethtool private flags to control whether enable tx unicast promisc. Then the function