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]
Date:   Wed, 17 Oct 2018 21:59:30 -0700 (PDT)
From:   David Miller <davem@...emloft.net>
To:     xuechaojing@...wei.com
Cc:     linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
        zhaochen6@...wei.com, tony.qu@...wei.com, yin.yinshi@...wei.com,
        luoshaokai@...wei.com, fy.wang@...wei.com, luoxianjun@...wei.com
Subject: Re: [PATCH 1/1] net-next/hinic: add checksum offload and TSO
 support

From: Xue Chaojing <xuechaojing@...wei.com>
Date: Tue, 16 Oct 2018 11:12:34 +0000

> +static void get_inner_l4_info(struct sk_buff *skb, union hinic_l4 *l4,
> +			      enum hinic_offload_type offload_type, u8 l4_proto,
> +			      enum hinic_l4_offload_type *l4_offload,
> +			      u32 *l4_len, u32 *offset)
> +{
> +	*offset = 0;
> +	*l4_len = 0;
> +	*l4_offload = OFFLOAD_DISABLE;

Please order local variables from longest to shortest line.

> +static int offload_csum(struct hinic_sq_task *task, u32 *queue_info,
> +			struct sk_buff *skb)
> +{
> +	union hinic_l3 ip;
> +	union hinic_l4 l4;
> +	enum hinic_l3_offload_type l3_type;
> +	enum hinic_l4_offload_type l4_offload;
> +	u32 offset, l4_len, network_hdr_len;
> +	u8 l4_proto;

Likewise.

> @@ -184,9 +458,9 @@ netdev_tx_t hinic_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
>  	unsigned int wqe_size;
>  	struct hinic_txq *txq;
>  	struct hinic_qp *qp;
> -	u16 prod_idx;
> +	u16 prod_idx, q_id = skb->queue_mapping;

Likewise.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ