Re: [PATCH v3] net: hyperv: add support for vlans in netvsc driver

2020-07-22 Thread Sriram Krishnan (srirakr2)
On 22/07/20, 3:48 AM, "Haiyang Zhang" wrote: > If you make this change, did you see any drop in a live test? The > "packet->total_bytes" in struct hv_netvsc_packet is for book keeping > only, which is used for stats info, and not visible by the host at all. > I made this sugg

RE: [PATCH v3] net: hyperv: add support for vlans in netvsc driver

2020-07-21 Thread Haiyang Zhang
M > M (nimm) ; xe-linux-external(mailer list) exter...@cisco.com>; k...@kernel.org; linux-hyp...@vger.kernel.org; > net...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH v3] net: hyperv: add support for vlans in netvsc driver > > > > On 21/07/20, 4:57

Re: [PATCH v3] net: hyperv: add support for vlans in netvsc driver

2020-07-21 Thread Sriram Krishnan (srirakr2)
On 21/07/20, 4:57 AM, "David Miller" wrote: From: Sriram Krishnan Date: Mon, 20 Jul 2020 22:15:51 +0530 > + if (skb->protocol == htons(ETH_P_8021Q)) { > + u16 vlan_tci = 0; > + skb_reset_mac_header(skb); > Please place an empty line between basic block

Re: [PATCH v3] net: hyperv: add support for vlans in netvsc driver

2020-07-20 Thread David Miller
From: Sriram Krishnan Date: Mon, 20 Jul 2020 22:15:51 +0530 > + if (skb->protocol == htons(ETH_P_8021Q)) { > + u16 vlan_tci = 0; > + skb_reset_mac_header(skb); Please place an empty line between basic block local variable declarations and actual code. > +

RE: [PATCH v3] net: hyperv: add support for vlans in netvsc driver

2020-07-20 Thread Haiyang Zhang
> -Original Message- > From: Sriram Krishnan > Sent: Monday, July 20, 2020 12:46 PM > To: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger ; > Wei Liu > Cc: mbumg...@cisco.com; u...@cisco.com; n...@cisco.com; xe-linux- > exter...@cisco.com; David S. Miller ; Jakub Kicinski > ; linux

RE: [PATCH v3] net: hyperv: add support for vlans in netvsc driver

2020-07-20 Thread Haiyang Zhang
> -Original Message- > From: Sriram Krishnan > Sent: Monday, July 20, 2020 12:46 PM > To: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger ; > Wei Liu > Cc: mbumg...@cisco.com; u...@cisco.com; n...@cisco.com; xe-linux- > exter...@cisco.com; David S. Miller ; Jakub Kicinski > ; linux

Re: [PATCH v3] net: hyperv: add support for vlans in netvsc driver

2020-07-20 Thread Stephen Hemminger
On Mon, 20 Jul 2020 22:15:51 +0530 Sriram Krishnan wrote: > > + /* When using AF_PACKET we need to remove VLAN from frame > + * and indicate VLAN information in SKB so HOST OS will > + * transmit the VLAN frame > + */ > + if (skb->protocol == htons(ETH_P_8021Q)) { > +