From 4aaaf9b95abad9cfcd2ac9b07797bccdd4ec01c1 Mon Sep 17 00:00:00 2001 From: Ioana Radulescu Date: Mon, 1 Oct 2018 13:44:57 +0300 Subject: dpaa2-eth: Configure Rx flow classification key For firmware versions that support it, configure an Rx flow classification key at probe time. Hardware expects all rules in the classification table to share the same key. So we setup a key containing all supported fields at driver init and when a user adds classification rules through ethtool, we will just mask out the unused header fields. Since the key composition process is the same for flow classification and hashing, reuse existing code where possible. Signed-off-by: Ioana Radulescu Signed-off-by: David S. Miller --- drivers/net/ethernet/freescale/dpaa2/dpni.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'drivers/net/ethernet/freescale/dpaa2/dpni.h') diff --git a/drivers/net/ethernet/freescale/dpaa2/dpni.h b/drivers/net/ethernet/freescale/dpaa2/dpni.h index 1664b77b28b1..ad7d8487a987 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpni.h +++ b/drivers/net/ethernet/freescale/dpaa2/dpni.h @@ -657,6 +657,11 @@ struct dpni_rx_dist_cfg { u16 fs_miss_flow_id; }; +int dpni_set_rx_fs_dist(struct fsl_mc_io *mc_io, + u32 cmd_flags, + u16 token, + const struct dpni_rx_dist_cfg *cfg); + int dpni_set_rx_hash_dist(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, -- cgit