net/sched: flower: Add PPPoE filter
authorWojciech Drewek <wojciech.drewek@intel.com>
Mon, 18 Jul 2022 12:18:11 +0000 (14:18 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 26 Jul 2022 17:20:29 +0000 (10:20 -0700)
commit5008750eff5d4af8a3aed4a7567c4cfb2b3cb156
tree70722959e05e053f3cf0c86e68b005576e20690f
parent46126db9c86110e5fc1e369b9bb89735ddefdae4
net/sched: flower: Add PPPoE filter

Add support for PPPoE specific fields for tc-flower.
Those fields can be provided only when protocol was set
to ETH_P_PPP_SES. Defines, dump, load and set are being done here.

Overwrite basic.n_proto only in case of PPP_IP and PPP_IPV6,
otherwise leave it as ETH_P_PPP_SES.

Signed-off-by: Wojciech Drewek <wojciech.drewek@intel.com>
Acked-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
include/uapi/linux/pkt_cls.h
net/sched/cls_flower.c