Skip to content
Commit 6d551617 authored by Boris Sukholitko's avatar Boris Sukholitko Committed by David S. Miller
Browse files

Revert "net/sched: cls_flower: Remove match on n_proto"



This reverts commit 0dca2c74.

The commit in question breaks hardware offload of flower filters.

Quoting Vladimir Oltean <olteanv@gmail.com>:

 fl_hw_replace_filter() and fl_reoffload() create a struct
 flow_cls_offload with a rule->match.mask member derived from the mask
 of the software classifier: &f->mask->key - that same mask that is used
 for initializing the flow dissector keys, and the one from which Boris
 removed the basic.n_proto member because it was bothering him.

Reported-by: default avatarVadym Kochan <vadym.kochan@plvision.eu>
Signed-off-by: default avatarBoris Sukholitko <boris.sukholitko@broadcom.com>
Reviewed-by: default avatarVladimir Oltean <olteanv@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ce03b94b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment