netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andy Furniss <andy.furniss@dsl.pipex.com>
To: hadi@cyberus.ca
Cc: Remus <rmocius@auste.elnet.lt>,
	netdev@oss.sgi.com, Nguyen Dinh Nam <nguyendinhnam@gmail.com>,
	Andre Tomt <andre@tomt.net>,
	syrius.ml@no-log.org, Damion de Soto <damion@snapgear.com>
Subject: Re: dummy as IMQ replacement
Date: Sat, 19 Mar 2005 10:23:27 +0000	[thread overview]
Message-ID: <423BFD9F.50401@dsl.pipex.com> (raw)
In-Reply-To: <1111196668.1146.114.camel@jzny.localdomain>

jamal wrote:
> Remus seems to have got it working with iptables earlier than
> 1.3.0 works fine.
> Unfortunately i am not close to my machines and wont be for a while.
> Can you try not to pass mirred in the command line and see if that
> works?
> 
> cheers,
> jamal

If I just do -

....
$TC filter add dev eth0 parent ffff: protocol ip prio 10 u32 \
match u32 0 0 flowid 1:1 \
action ipt -j MARK --set-mark 1

It still gives memory error with 1.3.1 , with 1.2.11 it parses OK but I 
get bogus stats - hit count is OK

[root@amd /home/andy/Qos]# tc -s filter ls dev eth0 parent ffff:

filter protocol ip pref 10 u32
filter protocol ip pref 10 u32 fh 800: ht divisor 1
filter protocol ip pref 10 u32 fh 800::800 order 2048 key ht 800 bkt 0 
flowid 1:1  (rule hit 12 success 12)
   match 00000000/00000000 at 0 (success 12 )
         action order 1: tablename: mangle  hook: NF_IP_PRE_ROUTING
         target MARK set 0x1
         index 1 ref 1 bind 1 installed 251 sec expires 1 sec
         Action statistics:
         Sent 7630953 bytes 0 pkt
         rate 3146Kbit 1095565348pps

If I try with the lines below added

action egress redirect dev dummy0 or
action redirect dev dummy0

I just get errors on whatever is after action - or memory errors with 1.3.1.

Using tc iproute2-ss050112 + patch for these tests.

I don't know if it's relevant but I am using gcc-2.95.3, which meant I 
had to change the dummy patch a bit as it doesn't (for me) like variable 
declarations in the middle of functions.

drivers/net/dummy.c: In function `dummy_xmit':
drivers/net/dummy.c:218: parse error before `from'
drivers/net/dummy.c:219: `from' undeclared (first use in this function)

So I changed to

static int dummy_xmit(struct sk_buff *skb, struct net_device *dev)
{
	struct dummy_private *dp = ((struct net_device *)dev)->priv;
	struct net_device_stats *stats = &dp->stats;
	int ret = 0;
	__u32 from;

	{
	stats->tx_packets++;
	stats->tx_bytes+=skb->len;
	}
#ifdef CONFIG_NET_CLS_ACT
	from = G_TC_FROM(skb->tc_verd);

Is there a switch for this? - or am I the only one who actually does 
kernel stuff with 2.95.3 (using LFS 5.1, which uses 3.3 by default but 
keeps 2.95.3 in /opt specially for kernels)

I am using it for iptables and tc aswell (though I tried 3.3 - but not 
for kernel yet)

I have manually loaded modules

dummy                   3972  0
mirred                  6400  0
pedit                   6624  0
gact                    5984  0
ipt_MARK                2432  0
ipt                     6944  0
ip_tables              19728  2 ipt_MARK,ipt
sch_tbf                 5120  1
sch_ingress             3136  1
cls_fw                  3904  2
sch_sfq                 5184  2
sch_prio                4736  1
cls_u32                 6916  0

Andy.

  reply	other threads:[~2005-03-19 10:23 UTC|newest]

Thread overview: 126+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-30 22:12 dummy as IMQ replacement Jamal Hadi Salim
2005-01-31  8:20 ` Hasso Tepper
2005-01-31 12:25   ` jamal
2005-01-31 12:38     ` Hasso Tepper
2005-01-31 12:47       ` jamal
2005-01-31 13:02         ` Hasso Tepper
2005-01-31 13:28           ` Thomas Graf
2005-01-31 13:45             ` jamal
2005-01-31 14:06               ` Thomas Graf
2005-01-31 14:29                 ` jamal
2005-01-31 13:39           ` jamal
2005-01-31 14:14             ` Hasso Tepper
2005-01-31 14:25               ` jamal
2005-01-31 14:46                 ` Hasso Tepper
2005-01-31 15:34                   ` jamal
2005-01-31 18:00                   ` Lennert Buytenhek
2005-01-31 20:08                     ` jamal
2005-01-31 13:58 ` Thomas Graf
2005-01-31 14:19   ` jamal
2005-01-31 15:15     ` Thomas Graf
2005-01-31 15:40       ` jamal
2005-01-31 15:59         ` Thomas Graf
2005-01-31 16:40           ` jamal
2005-01-31 18:15             ` Thomas Graf
2005-01-31 20:18               ` jamal
2005-01-31 22:53                 ` Thomas Graf
2005-02-01 12:02                   ` jamal
2005-02-01 12:51                     ` Thomas Graf
2005-02-01 13:13                       ` jamal
2005-02-01 22:44                         ` Thomas Graf
2005-02-02 14:24                           ` jamal
2005-02-02 15:40                             ` Thomas Graf
2005-02-02 15:55                               ` Thomas Graf
2005-01-31 20:28         ` David S. Miller
2005-02-01  1:02       ` Andy Furniss
2005-02-01 13:31         ` Thomas Graf
2005-02-01 15:03           ` Andy Furniss
2005-02-02 13:28             ` Thomas Graf
2005-01-31 16:27 ` Andre Correa
2005-01-31 16:51   ` Jamal Hadi Salim
2005-01-31 22:39 ` Andy Furniss
2005-02-01 11:49   ` jamal
2005-02-01 14:53     ` Andy Furniss
2005-02-02 14:05       ` jamal
2005-02-04  0:33         ` Andy Furniss
2005-02-01 11:32 ` Andy Furniss
     [not found] ` <0fcf01c5077f$579e4b80$6e69690a@RIMAS>
     [not found]   ` <1107174142.8021.121.camel@jzny.localdomain>
2005-03-09 14:30     ` Remus
2005-03-09 14:38       ` jamal
2005-03-10  1:06         ` Jamal Hadi Salim
2005-03-10  9:18           ` Remus
2005-03-10 11:22             ` jamal
2005-03-19  1:09               ` Andy Furniss
2005-03-19  1:45                 ` jamal
2005-03-19 10:23                   ` Andy Furniss [this message]
2005-03-20 13:20                     ` jamal
2005-03-20 13:55                       ` jamal
2005-03-20 18:31                         ` jamal
2005-03-21 22:08                       ` Andy Furniss
2005-03-21 13:14                 ` iptables breakage WAS(Re: " jamal
2005-03-21 21:50                   ` Andy Furniss
2005-03-21 22:41                     ` jamal
2005-03-22  1:15                       ` Andy Furniss
2005-03-22  3:31                         ` jamal
2005-03-22 21:09                           ` Andy Furniss
2005-03-23  3:57                             ` jamal
2005-03-23 19:33                               ` Andy Furniss
2005-03-23 19:45                                 ` jamal
2005-03-23 20:53                                   ` Andy Furniss
2005-03-23 21:07                                     ` jamal
2005-03-23 22:46                                       ` Andy Furniss
2005-03-23 23:12                                         ` Andy Furniss
2005-03-24  0:34                                           ` jamal
2005-03-24  1:00                                             ` Andy Furniss
2005-03-24  0:53                                           ` jamal
2005-03-24  1:08                                             ` Andy Furniss
2005-03-24 11:32                                               ` jamal
2005-03-24 11:57                                                 ` jamal
2005-03-24 15:41                                                   ` Andy Furniss
2005-03-25 11:13                                                     ` jamal
2005-03-25 12:39                                                       ` jamal
2005-03-25 17:27                                                         ` Patrick McHardy
2005-03-25 18:34                                                           ` jamal
2005-03-25 19:01                                                             ` Patrick McHardy
2005-03-25 20:07                                                               ` Patrick McHardy
2005-03-25 20:31                                                                 ` jamal
2005-03-25 20:37                                                                   ` Patrick McHardy
2005-03-25 20:54                                                                     ` jamal
2005-03-25 21:23                                                                       ` Patrick McHardy
2005-03-25 19:08                                                             ` jamal
2005-03-25 19:22                                                               ` jamal
2005-03-25 19:59                                                       ` Andy Furniss
2005-03-25 20:09                                                         ` Patrick McHardy
2005-03-25 20:42                                                           ` Andy Furniss
2005-03-25 20:10                                                         ` jamal
2005-03-25 20:18                                                           ` Patrick McHardy
2005-03-25 20:45                                                             ` jamal
2005-03-25 21:10                                                               ` Patrick McHardy
2005-03-25 21:57                                                                 ` jamal
2005-03-25 20:20                                                           ` Thomas Graf
2005-03-25 20:48                                                             ` jamal
2005-03-25 21:01                                                               ` Thomas Graf
2005-03-25 21:48                                                                 ` jamal
2005-03-25 22:03                                                                   ` Thomas Graf
2005-03-25 22:20                                                                     ` jamal
2005-03-25 20:39                                                           ` Patrick McHardy
2005-03-25 20:55                                                             ` jamal
2005-03-25 21:00                                                               ` Patrick McHardy
2005-03-25 21:44                                                                 ` jamal
2005-03-25 21:18                                                           ` Andy Furniss
2005-03-25 22:12                                                             ` IMQ again WAS(Re: " jamal
2005-03-25 23:26                                                               ` Andy Furniss
2005-03-27 19:35                                                               ` Andy Furniss
2005-03-28 13:39                                                                 ` Andy Furniss
2005-03-28 13:45                                                                   ` jamal
2005-03-28 13:55                                                                     ` Andy Furniss
2005-03-28 14:08                                                                       ` jamal
2005-03-28 13:57                                                                     ` jamal
2005-03-28 14:12                                                                       ` Andy Furniss
2005-03-28 14:20                                                                         ` jamal
2005-03-28 14:28                                                                           ` Andy Furniss
2005-03-28 14:36                                                                             ` Andy Furniss
2005-03-28 15:24                                                                               ` Andy Furniss
2005-03-28 19:27                                                                                 ` jamal
2005-03-28 20:13                                                                                   ` Andy Furniss
2005-03-23  1:31                   ` Patrick McHardy
2005-03-23  4:01                     ` 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=423BFD9F.50401@dsl.pipex.com \
    --to=andy.furniss@dsl.pipex.com \
    --cc=andre@tomt.net \
    --cc=damion@snapgear.com \
    --cc=hadi@cyberus.ca \
    --cc=netdev@oss.sgi.com \
    --cc=nguyendinhnam@gmail.com \
    --cc=rmocius@auste.elnet.lt \
    --cc=syrius.ml@no-log.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).