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
| ||
|
Message-Id: <20150219.150909.1111353454350810861.davem@davemloft.net> Date: Thu, 19 Feb 2015 15:09:09 -0500 (EST) From: David Miller <davem@...emloft.net> To: hayeswang@...ltek.com Cc: netdev@...r.kernel.org, nic_swsd@...ltek.com, linux-kernel@...r.kernel.org, linux-usb@...r.kernel.org Subject: Re: [PATCH net-next v2 0/3] Adjust the settings about USB_RX_EARLY_AGG From: Hayes Wang <hayeswang@...ltek.com> Date: Thu, 12 Feb 2015 14:33:45 +0800 > v2: > For patch #1, replace > > u32 ocp_data; > ocp_data = tp->coalesce / 8; > > with > > u32 ocp_data = tp->coalesce / 8; > > And replace > > struct net_device *dev = tp->netdev; > u32 ocp_data; > ocp_data = (agg_buf_sz - dev->mtu - VLAN_ETH_HLEN - VLAN_HLEN) / 4; > > with > > u32 mtu = tp->netdev->mtu; > u32 ocp_data = (agg_buf_sz - mtu - VLAN_ETH_HLEN - VLAN_HLEN) / 4; > > Use *switch* statement to replace the checking of *if*. > > v1: > The USB_RX_EARLY_AGG contains timeout and size. Separate them, and > they could be set independently. Then, the ethtool could be used to > change the timeout according to situation of the platform. Series applied, thanks. -- 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