diff options
author | Eric Dumazet <edumazet@google.com> | 2013-07-23 17:15:54 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-11 15:38:23 -0700 |
commit | 590c955eaaa18c5f1b341093baa60e0d582ba426 (patch) | |
tree | 0d2591df100a796856cdd60437303b90513d139b /net | |
parent | c4a6cc62e1fe24ab8d3bfe653f7e872a7a5bcd8e (diff) | |
download | kernel_samsung_tuna-590c955eaaa18c5f1b341093baa60e0d582ba426.zip kernel_samsung_tuna-590c955eaaa18c5f1b341093baa60e0d582ba426.tar.gz kernel_samsung_tuna-590c955eaaa18c5f1b341093baa60e0d582ba426.tar.bz2 |
usbnet: do not pretend to support SG/TSO
[ Upstream commit 20f0170377264e8449b6987041f0bcc4d746d3ed ]
usbnet doesn't support yet SG, so drivers should not advertise SG or TSO
capabilities, as they allow TCP stack to build large TSO packets that
need to be linearized and might use order-5 pages.
This adds an extra copy overhead and possible allocation failures.
Current code ignore skb_linearize() return code so crashes are even
possible.
Best is to not pretend SG/TSO is supported, and add this again when/if
usbnet really supports SG for devices who could get a performance gain.
Based on a prior patch from Freddy Xin <freddy@asix.com.tw>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions