net: microchip: sparx5: Add ES2 VCAP keyset configuration for Sparx5
This adds the ES2 VCAP port keyset configuration for Sparx5 and also updates the debugFS support to show the keyset configuration and the egress port mask. Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
9d712b8ddb
commit
b95d9e2c20
@@ -44,11 +44,14 @@ static void vcap_debugfs_show_rule_keyfield(struct vcap_control *vctrl,
|
||||
out->prf(out->dst, "%pI4h/%pI4h", &data->u32.value,
|
||||
&data->u32.mask);
|
||||
} else if (key == VCAP_KF_ETYPE ||
|
||||
key == VCAP_KF_IF_IGR_PORT_MASK) {
|
||||
key == VCAP_KF_IF_IGR_PORT_MASK ||
|
||||
key == VCAP_KF_IF_EGR_PORT_MASK) {
|
||||
hex = true;
|
||||
} else {
|
||||
u32 fmsk = (1 << keyfield[key].width) - 1;
|
||||
|
||||
if (keyfield[key].width == 32)
|
||||
fmsk = ~0;
|
||||
out->prf(out->dst, "%u/%u", data->u32.value & fmsk,
|
||||
data->u32.mask & fmsk);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user