* "no new features"... @ 2008-02-01 3:46 David Miller 2008-02-01 5:07 ` [PATCH] vlan tag match Stephen Hemminger 0 siblings, 1 reply; 8+ messages in thread From: David Miller @ 2008-02-01 3:46 UTC (permalink / raw) To: netdev I've just sent a pull request to Linus for net-2.6 and that should effectively be my final feature merge to him. Outside of the 6-patch thing Arnaldo is respinning I am calling for no new stuff to go in at this time. Only bug fixes. We've merged a lot of stuff already (on the order of 1800 patches in total). So we should draw the line in the sand so that we can have some hope to fix the almost guarenteed bugs. Many folks, including Linus, are flying home this weekend. So my basic plan is to open up a net-2.6.26 tree about a week and a half from now. Please set your feature work aside for the moment and find a fun bug to fix instead. :-) Thanks! ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH] vlan tag match 2008-02-01 3:46 "no new features" David Miller @ 2008-02-01 5:07 ` Stephen Hemminger 2008-02-01 5:34 ` Patrick McHardy 2008-02-05 11:20 ` David Miller 0 siblings, 2 replies; 8+ messages in thread From: Stephen Hemminger @ 2008-02-01 5:07 UTC (permalink / raw) To: David Miller; +Cc: netdev, Patrick McHardy Provide a way to use tc filters on vlan tag even if tag is buried in skb due to hardware acceleration. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> --- include/linux/pkt_cls.h | 3 ++- include/linux/tc_ematch/tc_em_meta.h | 1 + net/sched/em_meta.c | 17 +++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletions(-) diff --git a/include/linux/pkt_cls.h b/include/linux/pkt_cls.h index 1c1dba9..40fac8c 100644 --- a/include/linux/pkt_cls.h +++ b/include/linux/pkt_cls.h @@ -459,7 +459,8 @@ enum #define TCF_EM_U32 3 #define TCF_EM_META 4 #define TCF_EM_TEXT 5 -#define TCF_EM_MAX 5 +#define TCF_EM_VLAN 6 +#define TCF_EM_MAX 6 enum { diff --git a/include/linux/tc_ematch/tc_em_meta.h b/include/linux/tc_ematch/tc_em_meta.h index e21937c..c50d2ba 100644 --- a/include/linux/tc_ematch/tc_em_meta.h +++ b/include/linux/tc_ematch/tc_em_meta.h @@ -81,6 +81,7 @@ enum TCF_META_ID_SK_SNDTIMEO, TCF_META_ID_SK_SENDMSG_OFF, TCF_META_ID_SK_WRITE_PENDING, + TCF_META_ID_VLAN_TAG, __TCF_META_ID_MAX }; #define TCF_META_ID_MAX (__TCF_META_ID_MAX - 1) diff --git a/net/sched/em_meta.c b/net/sched/em_meta.c index a1e5619..9c2ec19 100644 --- a/net/sched/em_meta.c +++ b/net/sched/em_meta.c @@ -65,6 +65,7 @@ #include <linux/string.h> #include <linux/skbuff.h> #include <linux/random.h> +#include <linux/if_vlan.h> #include <linux/tc_ematch/tc_em_meta.h> #include <net/dst.h> #include <net/route.h> @@ -170,6 +171,21 @@ META_COLLECTOR(var_dev) } /************************************************************************** + * vlan tag + **************************************************************************/ + +META_COLLECTOR(int_vlan_tag) +{ + unsigned short tag; + if (vlan_get_tag(skb, &tag) < 0) + *err = -1; + else + dst->value = tag; +} + + + +/************************************************************************** * skb attributes **************************************************************************/ @@ -520,6 +536,7 @@ static struct meta_ops __meta_ops[TCF_META_TYPE_MAX+1][TCF_META_ID_MAX+1] = { [META_ID(SK_SNDTIMEO)] = META_FUNC(int_sk_sndtimeo), [META_ID(SK_SENDMSG_OFF)] = META_FUNC(int_sk_sendmsg_off), [META_ID(SK_WRITE_PENDING)] = META_FUNC(int_sk_write_pend), + [META_ID(VLAN_TAG)] = META_FUNC(int_vlan_tag), } }; -- 1.5.3.8 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] vlan tag match 2008-02-01 5:07 ` [PATCH] vlan tag match Stephen Hemminger @ 2008-02-01 5:34 ` Patrick McHardy 2008-02-01 5:50 ` Stephen Hemminger 2008-02-05 11:20 ` David Miller 1 sibling, 1 reply; 8+ messages in thread From: Patrick McHardy @ 2008-02-01 5:34 UTC (permalink / raw) To: Stephen Hemminger; +Cc: David Miller, netdev Stephen Hemminger wrote: > Provide a way to use tc filters on vlan tag even if tag is buried in > skb due to hardware acceleration. Looks reasonable. Would you like to add the same feature to the flow classifier? ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] vlan tag match 2008-02-01 5:34 ` Patrick McHardy @ 2008-02-01 5:50 ` Stephen Hemminger 2008-02-05 11:20 ` David Miller 0 siblings, 1 reply; 8+ messages in thread From: Stephen Hemminger @ 2008-02-01 5:50 UTC (permalink / raw) To: Patrick McHardy; +Cc: David Miller, netdev On Fri, 01 Feb 2008 06:34:34 +0100 Patrick McHardy <kaber@trash.net> wrote: > Stephen Hemminger wrote: > > Provide a way to use tc filters on vlan tag even if tag is buried in > > skb due to hardware acceleration. > > Looks reasonable. Would you like to add the same feature to the > flow classifier? > Yes, that would be good. -- Stephen Hemminger <stephen.hemminger@vyatta.com> ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] vlan tag match 2008-02-01 5:50 ` Stephen Hemminger @ 2008-02-05 11:20 ` David Miller 2008-02-05 14:26 ` Patrick McHardy 0 siblings, 1 reply; 8+ messages in thread From: David Miller @ 2008-02-05 11:20 UTC (permalink / raw) To: shemminger; +Cc: kaber, netdev From: Stephen Hemminger <shemminger@vyatta.com> Date: Thu, 31 Jan 2008 21:50:25 -0800 > On Fri, 01 Feb 2008 06:34:34 +0100 > Patrick McHardy <kaber@trash.net> wrote: > > > Stephen Hemminger wrote: > > > Provide a way to use tc filters on vlan tag even if tag is buried in > > > skb due to hardware acceleration. > > > > Looks reasonable. Would you like to add the same feature to the > > flow classifier? > > Yes, that would be good. Did that patch get posted? I didn't see it. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] vlan tag match 2008-02-05 11:20 ` David Miller @ 2008-02-05 14:26 ` Patrick McHardy 2008-02-05 16:21 ` Stephen Hemminger 0 siblings, 1 reply; 8+ messages in thread From: Patrick McHardy @ 2008-02-05 14:26 UTC (permalink / raw) To: David Miller; +Cc: shemminger, netdev David Miller wrote: > From: Stephen Hemminger <shemminger@vyatta.com> > Date: Thu, 31 Jan 2008 21:50:25 -0800 > >> On Fri, 01 Feb 2008 06:34:34 +0100 >> Patrick McHardy <kaber@trash.net> wrote: >> >>> Stephen Hemminger wrote: >>>> Provide a way to use tc filters on vlan tag even if tag is buried in >>>> skb due to hardware acceleration. >>> Looks reasonable. Would you like to add the same feature to the >>> flow classifier? >> Yes, that would be good. > > Did that patch get posted? I didn't see it. No, but I already added it myself. I'll post it in a new thread. BTW, Stephen, I noticed your ematch patch doesn't mask out the VLAN priority which is also included in the return value of vlan_get_tag(), is that intentional? ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] vlan tag match 2008-02-05 14:26 ` Patrick McHardy @ 2008-02-05 16:21 ` Stephen Hemminger 0 siblings, 0 replies; 8+ messages in thread From: Stephen Hemminger @ 2008-02-05 16:21 UTC (permalink / raw) To: Patrick McHardy; +Cc: David Miller, netdev On Tue, 05 Feb 2008 15:26:07 +0100 Patrick McHardy <kaber@trash.net> wrote: > David Miller wrote: > > From: Stephen Hemminger <shemminger@vyatta.com> > > Date: Thu, 31 Jan 2008 21:50:25 -0800 > > > >> On Fri, 01 Feb 2008 06:34:34 +0100 > >> Patrick McHardy <kaber@trash.net> wrote: > >> > >>> Stephen Hemminger wrote: > >>>> Provide a way to use tc filters on vlan tag even if tag is buried in > >>>> skb due to hardware acceleration. > >>> Looks reasonable. Would you like to add the same feature to the > >>> flow classifier? > >> Yes, that would be good. > > > > Did that patch get posted? I didn't see it. > > > No, but I already added it myself. I'll post it in a new thread. > > BTW, Stephen, I noticed your ematch patch doesn't mask out the > VLAN priority which is also included in the return value of > vlan_get_tag(), is that intentional? > It seemed easier than adding two different tag related matches, since meta match can do expressions. -- Stephen Hemminger <stephen.hemminger@vyatta.com> ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] vlan tag match 2008-02-01 5:07 ` [PATCH] vlan tag match Stephen Hemminger 2008-02-01 5:34 ` Patrick McHardy @ 2008-02-05 11:20 ` David Miller 1 sibling, 0 replies; 8+ messages in thread From: David Miller @ 2008-02-05 11:20 UTC (permalink / raw) To: shemminger; +Cc: netdev, kaber From: Stephen Hemminger <shemminger@vyatta.com> Date: Thu, 31 Jan 2008 21:07:32 -0800 > Provide a way to use tc filters on vlan tag even if tag is buried in > skb due to hardware acceleration. > > Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Applied, thanks. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-02-05 16:21 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-02-01 3:46 "no new features" David Miller 2008-02-01 5:07 ` [PATCH] vlan tag match Stephen Hemminger 2008-02-01 5:34 ` Patrick McHardy 2008-02-01 5:50 ` Stephen Hemminger 2008-02-05 11:20 ` David Miller 2008-02-05 14:26 ` Patrick McHardy 2008-02-05 16:21 ` Stephen Hemminger 2008-02-05 11:20 ` David Miller
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).