lkml.org 
[lkml]   [2015]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH net-next v2 0/3] Adjust the settings about USB_RX_EARLY_AGG
From
From: Hayes Wang <hayeswang@realtek.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.


\
 
 \ /
  Last update: 2015-02-19 21:41    [W:0.146 / U:1.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site