Score:0

tc display hash filter statistic

za flag

I just add tc filter like this :

tc filter add dev enp1s0f0 parent 1:0 protocol ip prio 1 u32 match ip dst 10.90.0.0/16 flowid 1:1
tc filter add dev enp1s0f0 parent 20:0 prio 1 handle 4: protocol ip u32 divisor 256
tc filter add dev enp1s0f0 protocol ip parent 20:0 prio 5 u32 ht 800:: match ip src 10.108.0.0/24 hashkey mask 0x000000ff at 12 link 4:
tc filter add dev enp1s0f0 parent 20:0 prio 1 handle 5: protocol ip u32 divisor 256
tc filter add dev enp1s0f0 protocol ip parent 20:0 prio 5 u32 ht 800:: match ip src 10.112.0.0/24 hashkey mask 0x000000ff at 12 link 5:
tc filter add dev enp1s0f0 parent 20:0 prio 1 handle 6: protocol ip u32 divisor 256
tc filter add dev enp1s0f0 protocol ip parent 20:0 prio 5 u32 ht 800:: match ip src 10.113.0.0/24 hashkey mask 0x000000ff at 12 link 6:
tc filter add dev enp1s0f0 parent 20:0 prio 1 handle 7: protocol ip u32 divisor 256
tc filter add dev enp1s0f0 protocol ip parent 20:0 prio 5 u32 ht 800:: match ip src 10.114.0.0/24 hashkey mask 0x000000ff at 12 link 7:
tc filter add dev enp1s0f0 parent 20:0 prio 1 handle 8: protocol ip u32 divisor 256
tc filter add dev enp1s0f0 protocol ip parent 20:0 prio 5 u32 ht 800:: match ip src 10.115.0.0/24 hashkey mask 0x000000ff at 12 link 8:
tc filter add dev enp1s0f0 parent 20:0 prio 1 handle 9: protocol ip u32 divisor 256
tc filter add dev enp1s0f0 protocol ip parent 20:0 prio 5 u32 ht 800:: match ip src 10.116.0.0/24 hashkey mask 0x000000ff at 12 link 9:
tc filter add dev enp1s0f0 parent 20:0 prio 1 handle 10: protocol ip u32 divisor 256
tc filter add dev enp1s0f0 protocol ip parent 20:0 prio 5 u32 ht 800:: match ip src 10.117.0.0/24 hashkey mask 0x000000ff at 12 link 10:
tc filter add dev enp1s0f0 parent 20:0 prio 1 handle 11: protocol ip u32 divisor 256
tc filter add dev enp1s0f0 protocol ip parent 20:0 prio 5 u32 ht 800:: match ip src 10.118.0.0/24 hashkey mask 0x000000ff at 12 link 11:
tc filter add dev enp1s0f0 parent 20:0 prio 1 handle 12: protocol ip u32 divisor 256
tc filter add dev enp1s0f0 protocol ip parent 20:0 prio 5 u32 ht 800:: match ip src 10.119.0.0/24 hashkey mask 0x000000ff at 12 link 12:
tc filter add dev enp1s0f0 parent 20:0 prio 1 handle 14: protocol ip u32 divisor 256
tc filter add dev enp1s0f0 protocol ip parent 20:0 prio 5 u32 ht 800:: match ip src 10.120.0.0/24 hashkey mask 0x000000ff at 12 link 14:
tc filter add dev enp1s0f0 parent 20:0 prio 1 handle 16: protocol ip u32 divisor 256
tc filter add dev enp1s0f0 protocol ip parent 20:0 prio 5 u32 ht 800:: match ip src 10.81.99.0/24 hashkey mask 0x000000ff at 12 link 16:
tc filter add dev enp1s0f0 protocol ip parent 20:0 prio 200 u32 ht 11:23: match ip src 10.118.0.35 flowid 20:03E8

But tc filter show dev enp1s0f0 shows only :

filter parent 1: protocol ip pref 1 u32 chain 0
filter parent 1: protocol ip pref 1 u32 chain 0 fh 800: ht divisor 1
filter parent 1: protocol ip pref 1 u32 chain 0 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:1 not_in_hw
  match 0a5a0000/ffff0000 at 16

This :

filter parent 1: protocol ip pref 1 u32 chain 0 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:1 not_in_hw
  match 0a5a0000/ffff0000 at 16

corresponds to this filter :

tc filter add dev enp1s0f0 parent 1:0 protocol ip prio 1 u32 match ip dst 10.90.0.0/16 flowid 1:1

But where other filters go ? And how I can display statistic for all this added filters ?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.