lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <52D58C81.802@cogentembedded.com>
Date:	Tue, 14 Jan 2014 22:14:09 +0300
From:	Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To:	Vince Bridgers <vbridgers2013@...il.com>, netdev@...r.kernel.org
CC:	peppe.cavallaro@...com, rayagond@...avyalabs.com
Subject: Re: [PATCH net-next] stmmac: Add vlan rx for better GRO performance.

Hello.

On 01/14/2014 08:34 PM, Vince Bridgers wrote:

> GRO requires VLANs to be removed before aggregation can occur.
> The Synopsys EMAC does not strip VLAN tags so this must be
> done by the driver.

> Signed-off-by: Vince Bridgers <vbridgers2013@...il.com>
> ---
>   drivers/net/ethernet/stmicro/stmmac/stmmac_main.c |   18 ++++++++++++++++++
>   1 file changed, 18 insertions(+)

> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
> index b8e3a4c..e3ff84e 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
> @@ -1951,6 +1951,22 @@ static netdev_tx_t stmmac_xmit(struct sk_buff *skb, struct net_device *dev)
>   	return NETDEV_TX_OK;
>   }
>
> +static inline void stmmac_rx_vlan(struct net_device *dev, struct sk_buff *skb)
> +{
> +	struct ethhdr *ehdr;
> +	u16 vlanid;

    Empty line after declarations wouldn't hurt.

> +	if ((dev->features & NETIF_F_HW_VLAN_CTAG_RX) ==
> +		NETIF_F_HW_VLAN_CTAG_RX &&

    Line should start right below the second paren on the previousl line.

> +		!__vlan_get_tag(skb, &vlanid)) {

    This one too.

WBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ