History

net/sched: introduce Match-all classifier

The matchall classifier matches every packet and allows the user to apply actions on it. This filter is very useful in usecases where every packet should be matched, for example, packet mirroring (SPAN) can be setup very easily using that filter.

Jiri Pirko committed 10 years ago

Commit bf3994d1 parent ded821c4 files · +270 −0Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/pkt_cls.h+11−0
@@ -433,6 +433,17 @@ enum { · 432 unmodified lines
433 433
434#define TCA_FLOWER_MAX (__TCA_FLOWER_MAX - 1)434#define TCA_FLOWER_MAX (__TCA_FLOWER_MAX - 1)
435 435
436/* Match-all classifier */
437
438enum {
439 TCA_MATCHALL_UNSPEC,
440 TCA_MATCHALL_CLASSID,
441 TCA_MATCHALL_ACT,
442 __TCA_MATCHALL_MAX,
443};
444
445#define TCA_MATCHALL_MAX (__TCA_MATCHALL_MAX - 1)
446
436/* Extended Matches */447/* Extended Matches */
437 448
438struct tcf_ematch_tree_hdr {449struct tcf_ematch_tree_hdr {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t