From: Thomas Graf <tgraf@suug.ch>
To: jamal <hadi@cyberus.ca>
Cc: netdev@oss.sgi.com
Subject: Re: instead of eaction
Date: Mon, 7 Feb 2005 00:08:59 +0100 [thread overview]
Message-ID: <20050206230859.GY31837@postel.suug.ch> (raw)
In-Reply-To: <1107728020.1055.50.camel@jzny.localdomain>
* jamal <1107728020.1055.50.camel@jzny.localdomain> 2005-02-06 17:13
>
> I think i am going to throw out the idea of eaction; instead
> just provide some defaults.
> First patch adds some defaults and second a quick simple example.
>
> I have to take off; but maybe i will get time to work on meta action as
> well as csum action when i get back.
>
> Comments welcome
>
> cheers,
> jamal
> --- /dev/null 2004-01-29 13:33:32.773091056 -0500
> +++ 2611-rc3+bk3/include/net/act_generic.h 2005-02-06 15:55:36.000000000 -0500
> + if (rta == NULL || rtattr_parse_nested(tb, TCA_DEF_MAX, rta) < 0)
> + return -EINVAL;
> +
> + if (tb[TCA_DEF_PARMS - 1] == NULL)
> + return -EINVAL;
Maybe check for tb[TCA_DEF_DATA - 1] == NULL here as well?
> + parm = RTA_DATA(tb[TCA_DEF_PARMS - 1]);
RTA_PAYLOAD check for TCA_DEF_PARMS?
> --- /dev/null 2004-01-29 13:33:32.773091056 -0500
> +++ 2611-rc3+bk3/net/sched/simple.c 2005-02-06 15:55:57.000000000 -0500
> @@ -0,0 +1,107 @@
> +#include <linux/tc_act/tc_defact.h>
> +#include <net/tc_act/tc_defact.h>
> +
> +/* use generic hash table with 8 buckets */
> +#define MY_TAB_SIZE 8
> +#define MY_TAB_MASK (MY_TAB_SIZE - 1)
> +static u32 idx_gen;
> +static struct tcf_defact *tcf_simp_ht[MY_TAB_SIZE];
> +static DEFINE_RWLOCK(simp_lock);
I guess this is supposed to be tca_use_default_defines
and move MY_TAB_SIZE before the includes?
It looks pretty simple to use and makes up ematches quite well. Any
userspace code alreay written?
next prev parent reply other threads:[~2005-02-06 23:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-06 22:13 instead of eaction jamal
2005-02-06 23:08 ` Thomas Graf [this message]
2005-02-07 13:57 ` jamal
2005-02-07 14:18 ` jamal
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=20050206230859.GY31837@postel.suug.ch \
--to=tgraf@suug.ch \
--cc=hadi@cyberus.ca \
--cc=netdev@oss.sgi.com \
/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).