login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
September
»
13
Re: [PATCH 1/1 2.6.28] cxgb3 - remove duplicate tests in lro
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Jeff Garzik
Subject:
Re: [PATCH 1/1 2.6.28] cxgb3 - remove duplicate tests in lro
Date: Saturday, September 13, 2008 - 12:35 pm
Divy Le Ray wrote:
quoted text
> From: Divy Le Ray <divy@chelsio.com> > > The generic lro code checks TCP flags/options. > Remove duplicate tests done in the driver. > > Signed-off-by: Divy Le Ray <divy@chelsio.com> > --- > > drivers/net/cxgb3/sge.c | 35 ----------------------------------- > 1 files changed, 0 insertions(+), 35 deletions(-) > > diff --git a/drivers/net/cxgb3/sge.c b/drivers/net/cxgb3/sge.c > index 1b0861d..f78a42c 100644 > --- a/drivers/net/cxgb3/sge.c > +++ b/drivers/net/cxgb3/sge.c > @@ -1937,38 +1937,6 @@ static inline int lro_frame_ok(const struct cpl_rx_pkt *p) > eh->h_proto == htons(ETH_P_IP) && ih->ihl == (sizeof(*ih) >> 2); > } > > -#define TCP_FLAG_MASK (TCP_FLAG_CWR | TCP_FLAG_ECE | TCP_FLAG_URG |\ > - TCP_FLAG_ACK | TCP_FLAG_PSH | TCP_FLAG_RST |\ > - TCP_FLAG_SYN | TCP_FLAG_FIN) > -#define TSTAMP_WORD ((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) |\ > - (TCPOPT_TIMESTAMP << 8) | TCPOLEN_TIMESTAMP) > - > -/** > - * lro_segment_ok - check if a TCP segment is eligible for LRO > - * @tcph: the TCP header of the packet > - * > - * Returns true if a TCP packet is eligible for LRO. This requires that > - * the packet have only the ACK flag set and no TCP options besides > - * time stamps. > - */ > -static inline int lro_segment_ok(const struct tcphdr *tcph) > -{ > - int optlen; > - > - if (unlikely((tcp_flag_word(tcph) & TCP_FLAG_MASK) != TCP_FLAG_ACK)) > - return 0; > - > - optlen = (tcph->doff << 2) - sizeof(*tcph); > - if (optlen) { > - const u32 *opt = (const u32 *)(tcph + 1); > - > - if (optlen != TCPOLEN_TSTAMP_ALIGNED || > - *opt != htonl(TSTAMP_WORD) || !opt[2]) > - return 0; > - } > - return 1; > -} > - > static int t3_get_lro_header(void **eh, void **iph, void **tcph, > u64 *hdr_flags, void *priv)
applied --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH 1/1 2.6.28] cxgb3 - remove duplicate tests in lro
, Divy Le Ray
, (Thu Sep 4, 10:34 pm)
Re: [PATCH 1/1 2.6.28] cxgb3 - remove duplicate tests in lro
, Jeff Garzik
, (Sat Sep 13, 12:35 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Brian Swetland
Re: Attempted summary of suspend-blockers LKML thread
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Greg KH
Re: [PATCH 1/1] staging: hv: Fix race condition on IC channel initialization (modi...
Borislav Petkov
drm_vm.c:drm_mmap: possible circular locking dependency detected (was: Re: Linux 2...
Mel Gorman
Re: [PATCH 09/14] Add /proc trigger for memory compaction
git
:
Felipe Contreras
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Paolo Ciarrocchi
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Mike Miller
git message
Johannes Schindelin
Re: [PATCH] Fix install-doc-quick target
Peter Oberndorfer
Subject: [PATCH] fix stg edit command
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Badalian Vyacheslav
Re: tc filter flow hash question
Jarek Poplawski
Re: tc filter flow hash question
David Miller
Re: [RFC 0/5] generic rx recycling
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
git-commits-head
:
Linux Kernel Mailing List
New device ID for sc92031 [1088:2031]
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
Linux Kernel Mailing List
e1000e: Expose MDI-X status via ethtool change
Linux Kernel Mailing List
NFS: Store pages from an NFS inode into a local cache
Linux Kernel Mailing List
arm/imx/gpio: GPIO_INT_{HIGH,LOW}_LEV are not necessarily constant
openbsd-misc
:
Theo de Raadt
Re: RES: OpenBSD on IBM System X3550 7879
Bret S. Lambert
Re: any web management gui for pf ?
Kevin
Re: uvm_mapent_alloc: out of static map entries on 4.3 i386
Nick Holland
Re: Install OpenBSD from USB ?
Rob Shepherd
x86 hardware for router system
Colocation donated by:
Syndicate