dpaa2-eth: Add a couple of macros
Add two macros to simplify reading DPNI options. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
df8e249be8
commit
61f9bf0011
@@ -2810,8 +2810,7 @@ static int dpaa2_eth_set_cls(struct dpaa2_eth_priv *priv)
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
if (priv->dpni_attrs.options & DPNI_OPT_NO_FS ||
|
||||
!(priv->dpni_attrs.options & DPNI_OPT_HAS_KEY_MASKING)) {
|
||||
if (!dpaa2_eth_fs_enabled(priv) || !dpaa2_eth_fs_mask_enabled(priv)) {
|
||||
dev_dbg(dev, "Rx cls disabled in DPNI options\n");
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
Reference in New Issue
Block a user