History

net: dsa: felix: restrict psfp rules on ingress port

PSFP rules take effect on the streams from any port of VSC9959 switch. This patch use ingress port to limit the rule only active on this port. Each stream can only match two ingress source ports in VSC9959. Streams from lowest port gets the configuration of SFID pointed by MAC Table lookup and streams from highest port gets the configuration of (SFID+1) pointed by MAC Table lookup. This patch defines the PSFP rule on highest port as dummy rule, which means that it does not modify the MAC table.

Xiaoliang Yang committed 4 years ago

Commit a7e13ed1 parent 76c13ed3 files · +163 −32Browse files

Showing the changes to include (1 of 3 files). Show all

Unified · Split

include/soc/mscc/ocelot.h+2−1
@@ -556,7 +556,8 @@ struct ocelot_ops { · 555 unmodified lines
556556 u16 (*wm_dec)(u16 value);
557557 void (*wm_stat)(u32 val, u32 *inuse, u32 *maxuse);
558558 void (*psfp_init)(struct ocelot *ocelot);
559− int (*psfp_filter_add)(struct ocelot *ocelot, struct flow_cls_offload *f);
559+ int (*psfp_filter_add)(struct ocelot *ocelot, int port,
560+ struct flow_cls_offload *f);
560561 int (*psfp_filter_del)(struct ocelot *ocelot, struct flow_cls_offload *f);
561562 int (*psfp_stats_get)(struct ocelot *ocelot, struct flow_cls_offload *f,
562563 struct flow_stats *stats);

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