Re: [PATCH iproute2 1/1] tc filters: add support to get individual filters by handle

2016-10-13 Thread Jamal Hadi Salim
On 16-10-12 12:46 PM, Cong Wang wrote: On Mon, Oct 10, 2016 at 9:45 AM, Jamal Hadi Salim wrote: tc/tc_filter.c | 185 + 1 file changed, 175 insertions(+), 10 deletions(-) Please update man/man8/tc.8 too, but can be a separated patch. ;)

Re: [PATCH iproute2 1/1] tc filters: add support to get individual filters by handle

2016-10-12 Thread Stephen Hemminger
On Mon, 10 Oct 2016 12:45:14 -0400 Jamal Hadi Salim wrote: > From: Jamal Hadi Salim > > sudo $TC filter add dev $ETH parent : prio 2 protocol ip \ > u32 match u32 0 0 flowid 1:1 \ > action ok > sudo $TC filter add dev $ETH parent : prio 1 protocol ip \ > u32 match ip protocol 1 0xff flo

Re: [PATCH iproute2 1/1] tc filters: add support to get individual filters by handle

2016-10-12 Thread Cong Wang
On Mon, Oct 10, 2016 at 9:45 AM, Jamal Hadi Salim wrote: > tc/tc_filter.c | 185 > + > 1 file changed, 175 insertions(+), 10 deletions(-) Please update man/man8/tc.8 too, but can be a separated patch. ;)

[PATCH iproute2 1/1] tc filters: add support to get individual filters by handle

2016-10-10 Thread Jamal Hadi Salim
From: Jamal Hadi Salim sudo $TC filter add dev $ETH parent : prio 2 protocol ip \ u32 match u32 0 0 flowid 1:1 \ action ok sudo $TC filter add dev $ETH parent : prio 1 protocol ip \ u32 match ip protocol 1 0xff flowid 1:10 \ action ok now dump to see all rules.. $TC -s filter ls dev $ETH