Problems while mixing protocols

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  Hello,

  I'm trying to shape traffic by IP addresses and by 802.1q vlans.
But when I add 802.1q filter filters output looks strange.

  Maybe I'm missing some options to TC?

  Thanks,

  Mindaugas

# ./bin/tc -s -d filter show dev eth0

filter parent 1: protocol ip pref 1 u32
filter parent 1: protocol ip pref 1 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 1 u32 fh 800::800 order 2048 key ht 800
bkt 0 flowid 1:10
  match d5e2b800/fffffe00 at 12
filter parent 1: protocol ip pref 1 u32 fh 800::801 order 2049 key ht 800
bkt 0 flowid 1:11
  match d5e28af0/fffffff8 at 12
filter parent 1: protocol ip pref 1 u32 fh 800::802 order 2050 key ht 800
bkt 0 flowid 1:11
  match d5e28af8/fffffffc at 12
filter parent 1: protocol ip pref 1 u32 fh 800::803 order 2051 key ht 800
bkt 0 flowid 1:200
  match d5e2a020/fffffffc at 12
filter parent 1: protocol ip pref 1 u32 fh 800::804 order 2052 key ht 800
bkt 0 flowid 1:300
  match d5e2a024/fffffffc at 12

# ./bin/tc filter add dev eth0 parent 1: protocol 802.1Q u32 match u16 5
0x0fff flowid 1:500

# ./bin/tc -s -d filter show dev eth0

filter parent 1: protocol ip pref 1 u32
filter parent 1: protocol ip pref 1 u32 fh 801: ht divisor 1
filter parent 1: protocol ip pref 1 u32 fh 801::800 order 2048 key ht 801
bkt 0 flowid 1:500
  match 00050000/0fff0000 at 0
filter parent 1: protocol ip pref 1 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 1 u32 fh 800::800 order 2048 key ht 800
bkt 0 flowid 1:10
  match d5e2b800/fffffe00 at 12
filter parent 1: protocol ip pref 1 u32 fh 800::801 order 2049 key ht 800
bkt 0 flowid 1:11
  match d5e28af0/fffffff8 at 12
filter parent 1: protocol ip pref 1 u32 fh 800::802 order 2050 key ht 800
bkt 0 flowid 1:11
  match d5e28af8/fffffffc at 12
filter parent 1: protocol ip pref 1 u32 fh 800::803 order 2051 key ht 800
bkt 0 flowid 1:200
  match d5e2a020/fffffffc at 12
filter parent 1: protocol ip pref 1 u32 fh 800::804 order 2052 key ht 800
bkt 0 flowid 1:300
  match d5e2a024/fffffffc at 12
filter parent 1: protocol 802.1Q pref 49152 u32
filter parent 1: protocol 802.1Q pref 49152 u32 fh 801: ht divisor 1
filter parent 1: protocol 802.1Q pref 49152 u32 fh 801::800 order 2048 key
ht 801 bkt 0 flowid 1:500
  match 00050000/0fff0000 at 0
filter parent 1: protocol 802.1Q pref 49152 u32 fh 800: ht divisor 1
filter parent 1: protocol 802.1Q pref 49152 u32 fh 800::800 order 2048 key
ht 800 bkt 0 flowid 1:10
  match d5e2b800/fffffe00 at 12
filter parent 1: protocol 802.1Q pref 49152 u32 fh 800::801 order 2049 key
ht 800 bkt 0 flowid 1:11
  match d5e28af0/fffffff8 at 12
filter parent 1: protocol 802.1Q pref 49152 u32 fh 800::802 order 2050 key
ht 800 bkt 0 flowid 1:11
  match d5e28af8/fffffffc at 12
filter parent 1: protocol 802.1Q pref 49152 u32 fh 800::803 order 2051 key
ht 800 bkt 0 flowid 1:200
  match d5e2a020/fffffffc at 12
filter parent 1: protocol 802.1Q pref 49152 u32 fh 800::804 order 2052 key
ht 800 bkt 0 flowid 1:300
  match d5e2a024/fffffffc at 12

_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux