[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140502.174928.1555908531689473830.davem@davemloft.net>
Date: Fri, 02 May 2014 17:49:28 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: chema@...gle.com
Cc: edumazet@...gle.com, dborkman@...hat.com, ast@...mgrid.com,
netdev@...r.kernel.org
Subject: Re: [PATCH net-next v2] net: filter: add insn for loading internal
transport header offset
From: Chema Gonzalez <chema@...gle.com>
Date: Thu, 1 May 2014 11:44:40 -0700
> Patch adds an ANC_TRA_OFFSET insn that loads the internal transport
> header of a packet ("internal" meaning after decapsulation by the
> flow dissector).
>
> Signed-off-by: Chema Gonzalez <chema@...gle.com>
I'm not so convinced of this change.
What are the use cases?
If the use cases are to simply pull the ports out of the transport
header for filter matching or hashing, don't just make a half-step
like this.
We can probably add an extension to AF_PACKET which provides the flow
key at the end of the tpacket3_hdr if a certain socket option is set.
That would provide the transport header as well as a side effect, and
be much more powerful and efficient than this particular BPF
instruction.
--
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