From: Ben Hutchings <bhutchings@solarflare.com>
To: Santwona.Behera@Sun.COM
Cc: netdev@vger.kernel.org, davem@davemloft.net, jeff@garzik.org,
gkernel-commit@lists.sourceforge.net,
Matheos Worku <Matheos.Worku@Sun.COM>,
Mehdi Bonyadi <Mehdi.Bonyadi@Sun.COM>
Subject: Re: [PATCH 2/3] Add support for RX packet classification in a network device
Date: Tue, 23 Dec 2008 00:16:48 +0000 [thread overview]
Message-ID: <1229991408.3077.19.camel@achroite> (raw)
In-Reply-To: <49501CEF.8010101@Sun.COM>
On Mon, 2008-12-22 at 15:04 -0800, Santwona.Behera@Sun.COM wrote:
[...]
> >> @@ -558,14 +626,16 @@ struct ethtool_ops {
> >> #define TCP_V4_FLOW 0x01
> >> #define UDP_V4_FLOW 0x02
> >> #define SCTP_V4_FLOW 0x03
> >> -#define AH_ESP_V4_FLOW 0x04
> >> -#define TCP_V6_FLOW 0x05
> >> -#define UDP_V6_FLOW 0x06
> >> -#define SCTP_V6_FLOW 0x07
> >> -#define AH_ESP_V6_FLOW 0x08
> >> +#define AH_V4_FLOW 0x04
> >> +#define ESP_V4_FLOW 0x05
> >> +#define TCP_V6_FLOW 0x06
> >> +#define UDP_V6_FLOW 0x07
> >> +#define SCTP_V6_FLOW 0x08
> >> +#define AH_V6_FLOW 0x09
> >> +#define ESP_V6_FLOW 0x0a
> >> +#define IP_USER_FLOW 0x0b
> >>
> >> /* L3-L4 network traffic flow hash options */
> >> -#define RXH_DEV_PORT (1 << 0)
> >> #define RXH_L2DA (1 << 1)
> >> #define RXH_VLAN (1 << 2)
> >> #define RXH_L3_PROTO (1 << 3)
> > [...]
> >
> > No, you can't do this. Leave the existing definitions unchanged and
> > only add new ones.
>
> The original code/patch was not quite correct where the AH_ESP_V4_FLOW
> was being used to represent AH flows. So my goal here was to remove that
> and add 2 separate flow types for AH and ESP. I have two ways of
> achieving this without changing the existing definitions completely:
>
> 1. I change AH_ESP_Vx_FLOW defines to AH_Vx_FLOW defines and add 2 new
> defines for ESP_Vx_FLOW at the end, with values 0x9 and 0xa.
If AH_ESP_Vx_FLOW has only ever been implemented as AH-only then perhaps
this is reasonable.
> 2. I keep the AH_ESP_Vx_FLOW defines as is (but this will be dead code
> as it will not be used) and add 2 new AH_Vx_FLOW defines and 2 new
> ESP_Vx_FLOW defines at the end with values 0x9, 0xa, 0xb, 0xc.
This is safest.
Also you are probably right to remove RXH_DEV_PORT as that appears to be
an niu quirk that shouldn't be exposed.
Ben.
--
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
next prev parent reply other threads:[~2008-12-23 0:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-22 18:45 [PATCH 2/3] Add support for RX packet classification in a network device Santwona.Behera
2008-12-22 19:27 ` Ben Hutchings
2008-12-22 23:04 ` Santwona.Behera
2008-12-23 0:16 ` Ben Hutchings [this message]
2008-12-23 0:36 ` Santwona.Behera
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1229991408.3077.19.camel@achroite \
--to=bhutchings@solarflare.com \
--cc=Matheos.Worku@Sun.COM \
--cc=Mehdi.Bonyadi@Sun.COM \
--cc=Santwona.Behera@Sun.COM \
--cc=davem@davemloft.net \
--cc=gkernel-commit@lists.sourceforge.net \
--cc=jeff@garzik.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).