1ca9c54d2SDexuan Cui // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2ca9c54d2SDexuan Cui /* Copyright (c) 2021, Microsoft Corporation. */
3ca9c54d2SDexuan Cui
4ca9c54d2SDexuan Cui #include <linux/inetdevice.h>
5ca9c54d2SDexuan Cui #include <linux/etherdevice.h>
6ca9c54d2SDexuan Cui #include <linux/ethtool.h>
7ca9c54d2SDexuan Cui
8fd325cd6SLong Li #include <net/mana/mana.h>
9ca9c54d2SDexuan Cui
10ca9c54d2SDexuan Cui static const struct {
11ca9c54d2SDexuan Cui char name[ETH_GSTRING_LEN];
12ca9c54d2SDexuan Cui u16 offset;
13ca9c54d2SDexuan Cui } mana_eth_stats[] = {
14ca9c54d2SDexuan Cui {"stop_queue", offsetof(struct mana_ethtool_stats, stop_queue)},
15ca9c54d2SDexuan Cui {"wake_queue", offsetof(struct mana_ethtool_stats, wake_queue)},
16*ac3899c6SShradha Gupta {"hc_tx_bytes", offsetof(struct mana_ethtool_stats, hc_tx_bytes)},
17*ac3899c6SShradha Gupta {"hc_tx_ucast_pkts", offsetof(struct mana_ethtool_stats,
18*ac3899c6SShradha Gupta hc_tx_ucast_pkts)},
19*ac3899c6SShradha Gupta {"hc_tx_ucast_bytes", offsetof(struct mana_ethtool_stats,
20*ac3899c6SShradha Gupta hc_tx_ucast_bytes)},
21*ac3899c6SShradha Gupta {"hc_tx_bcast_pkts", offsetof(struct mana_ethtool_stats,
22*ac3899c6SShradha Gupta hc_tx_bcast_pkts)},
23*ac3899c6SShradha Gupta {"hc_tx_bcast_bytes", offsetof(struct mana_ethtool_stats,
24*ac3899c6SShradha Gupta hc_tx_bcast_bytes)},
25*ac3899c6SShradha Gupta {"hc_tx_mcast_pkts", offsetof(struct mana_ethtool_stats,
26*ac3899c6SShradha Gupta hc_tx_mcast_pkts)},
27*ac3899c6SShradha Gupta {"hc_tx_mcast_bytes", offsetof(struct mana_ethtool_stats,
28*ac3899c6SShradha Gupta hc_tx_mcast_bytes)},
29bd7fc6e1SShradha Gupta {"tx_cq_err", offsetof(struct mana_ethtool_stats, tx_cqe_err)},
30bd7fc6e1SShradha Gupta {"tx_cqe_unknown_type", offsetof(struct mana_ethtool_stats,
31bd7fc6e1SShradha Gupta tx_cqe_unknown_type)},
32bd7fc6e1SShradha Gupta {"rx_coalesced_err", offsetof(struct mana_ethtool_stats,
33bd7fc6e1SShradha Gupta rx_coalesced_err)},
34bd7fc6e1SShradha Gupta {"rx_cqe_unknown_type", offsetof(struct mana_ethtool_stats,
35bd7fc6e1SShradha Gupta rx_cqe_unknown_type)},
36ca9c54d2SDexuan Cui };
37ca9c54d2SDexuan Cui
mana_get_sset_count(struct net_device * ndev,int stringset)38ca9c54d2SDexuan Cui static int mana_get_sset_count(struct net_device *ndev, int stringset)
39ca9c54d2SDexuan Cui {
40ca9c54d2SDexuan Cui struct mana_port_context *apc = netdev_priv(ndev);
41ca9c54d2SDexuan Cui unsigned int num_queues = apc->num_queues;
42ca9c54d2SDexuan Cui
43ca9c54d2SDexuan Cui if (stringset != ETH_SS_STATS)
44ca9c54d2SDexuan Cui return -EINVAL;
45ca9c54d2SDexuan Cui
46bd7fc6e1SShradha Gupta return ARRAY_SIZE(mana_eth_stats) + num_queues *
47bd7fc6e1SShradha Gupta (MANA_STATS_RX_COUNT + MANA_STATS_TX_COUNT);
48ca9c54d2SDexuan Cui }
49ca9c54d2SDexuan Cui
mana_get_strings(struct net_device * ndev,u32 stringset,u8 * data)50ca9c54d2SDexuan Cui static void mana_get_strings(struct net_device *ndev, u32 stringset, u8 *data)
51ca9c54d2SDexuan Cui {
52ca9c54d2SDexuan Cui struct mana_port_context *apc = netdev_priv(ndev);
53ca9c54d2SDexuan Cui unsigned int num_queues = apc->num_queues;
54ca9c54d2SDexuan Cui u8 *p = data;
55ca9c54d2SDexuan Cui int i;
56ca9c54d2SDexuan Cui
57ca9c54d2SDexuan Cui if (stringset != ETH_SS_STATS)
58ca9c54d2SDexuan Cui return;
59ca9c54d2SDexuan Cui
60ca9c54d2SDexuan Cui for (i = 0; i < ARRAY_SIZE(mana_eth_stats); i++) {
61ca9c54d2SDexuan Cui memcpy(p, mana_eth_stats[i].name, ETH_GSTRING_LEN);
62ca9c54d2SDexuan Cui p += ETH_GSTRING_LEN;
63ca9c54d2SDexuan Cui }
64ca9c54d2SDexuan Cui
65ca9c54d2SDexuan Cui for (i = 0; i < num_queues; i++) {
66ca9c54d2SDexuan Cui sprintf(p, "rx_%d_packets", i);
67ca9c54d2SDexuan Cui p += ETH_GSTRING_LEN;
68ca9c54d2SDexuan Cui sprintf(p, "rx_%d_bytes", i);
69ca9c54d2SDexuan Cui p += ETH_GSTRING_LEN;
70f90f8420SHaiyang Zhang sprintf(p, "rx_%d_xdp_drop", i);
71f90f8420SHaiyang Zhang p += ETH_GSTRING_LEN;
72d356abb9SHaiyang Zhang sprintf(p, "rx_%d_xdp_tx", i);
73d356abb9SHaiyang Zhang p += ETH_GSTRING_LEN;
747a8938cdSHaiyang Zhang sprintf(p, "rx_%d_xdp_redirect", i);
757a8938cdSHaiyang Zhang p += ETH_GSTRING_LEN;
76ca9c54d2SDexuan Cui }
77ca9c54d2SDexuan Cui
78ca9c54d2SDexuan Cui for (i = 0; i < num_queues; i++) {
79ca9c54d2SDexuan Cui sprintf(p, "tx_%d_packets", i);
80ca9c54d2SDexuan Cui p += ETH_GSTRING_LEN;
81ca9c54d2SDexuan Cui sprintf(p, "tx_%d_bytes", i);
82ca9c54d2SDexuan Cui p += ETH_GSTRING_LEN;
837a8938cdSHaiyang Zhang sprintf(p, "tx_%d_xdp_xmit", i);
847a8938cdSHaiyang Zhang p += ETH_GSTRING_LEN;
85bd7fc6e1SShradha Gupta sprintf(p, "tx_%d_tso_packets", i);
86bd7fc6e1SShradha Gupta p += ETH_GSTRING_LEN;
87bd7fc6e1SShradha Gupta sprintf(p, "tx_%d_tso_bytes", i);
88bd7fc6e1SShradha Gupta p += ETH_GSTRING_LEN;
89bd7fc6e1SShradha Gupta sprintf(p, "tx_%d_tso_inner_packets", i);
90bd7fc6e1SShradha Gupta p += ETH_GSTRING_LEN;
91bd7fc6e1SShradha Gupta sprintf(p, "tx_%d_tso_inner_bytes", i);
92bd7fc6e1SShradha Gupta p += ETH_GSTRING_LEN;
93bd7fc6e1SShradha Gupta sprintf(p, "tx_%d_long_pkt_fmt", i);
94bd7fc6e1SShradha Gupta p += ETH_GSTRING_LEN;
95bd7fc6e1SShradha Gupta sprintf(p, "tx_%d_short_pkt_fmt", i);
96bd7fc6e1SShradha Gupta p += ETH_GSTRING_LEN;
97bd7fc6e1SShradha Gupta sprintf(p, "tx_%d_csum_partial", i);
98bd7fc6e1SShradha Gupta p += ETH_GSTRING_LEN;
99bd7fc6e1SShradha Gupta sprintf(p, "tx_%d_mana_map_err", i);
100bd7fc6e1SShradha Gupta p += ETH_GSTRING_LEN;
101ca9c54d2SDexuan Cui }
102ca9c54d2SDexuan Cui }
103ca9c54d2SDexuan Cui
mana_get_ethtool_stats(struct net_device * ndev,struct ethtool_stats * e_stats,u64 * data)104ca9c54d2SDexuan Cui static void mana_get_ethtool_stats(struct net_device *ndev,
105ca9c54d2SDexuan Cui struct ethtool_stats *e_stats, u64 *data)
106ca9c54d2SDexuan Cui {
107ca9c54d2SDexuan Cui struct mana_port_context *apc = netdev_priv(ndev);
108ca9c54d2SDexuan Cui unsigned int num_queues = apc->num_queues;
109ca9c54d2SDexuan Cui void *eth_stats = &apc->eth_stats;
110f90f8420SHaiyang Zhang struct mana_stats_rx *rx_stats;
111f90f8420SHaiyang Zhang struct mana_stats_tx *tx_stats;
112ca9c54d2SDexuan Cui unsigned int start;
113ca9c54d2SDexuan Cui u64 packets, bytes;
1147a8938cdSHaiyang Zhang u64 xdp_redirect;
1157a8938cdSHaiyang Zhang u64 xdp_xmit;
116f90f8420SHaiyang Zhang u64 xdp_drop;
117d356abb9SHaiyang Zhang u64 xdp_tx;
118bd7fc6e1SShradha Gupta u64 tso_packets;
119bd7fc6e1SShradha Gupta u64 tso_bytes;
120bd7fc6e1SShradha Gupta u64 tso_inner_packets;
121bd7fc6e1SShradha Gupta u64 tso_inner_bytes;
122bd7fc6e1SShradha Gupta u64 long_pkt_fmt;
123bd7fc6e1SShradha Gupta u64 short_pkt_fmt;
124bd7fc6e1SShradha Gupta u64 csum_partial;
125bd7fc6e1SShradha Gupta u64 mana_map_err;
126ca9c54d2SDexuan Cui int q, i = 0;
127ca9c54d2SDexuan Cui
128ca9c54d2SDexuan Cui if (!apc->port_is_up)
129ca9c54d2SDexuan Cui return;
130*ac3899c6SShradha Gupta /* we call mana function to update stats from GDMA */
131*ac3899c6SShradha Gupta mana_query_gf_stats(apc);
132ca9c54d2SDexuan Cui
133ca9c54d2SDexuan Cui for (q = 0; q < ARRAY_SIZE(mana_eth_stats); q++)
134ca9c54d2SDexuan Cui data[i++] = *(u64 *)(eth_stats + mana_eth_stats[q].offset);
135ca9c54d2SDexuan Cui
136ca9c54d2SDexuan Cui for (q = 0; q < num_queues; q++) {
137f90f8420SHaiyang Zhang rx_stats = &apc->rxqs[q]->stats;
138ca9c54d2SDexuan Cui
139ca9c54d2SDexuan Cui do {
140068c38adSThomas Gleixner start = u64_stats_fetch_begin(&rx_stats->syncp);
141f90f8420SHaiyang Zhang packets = rx_stats->packets;
142f90f8420SHaiyang Zhang bytes = rx_stats->bytes;
143f90f8420SHaiyang Zhang xdp_drop = rx_stats->xdp_drop;
144d356abb9SHaiyang Zhang xdp_tx = rx_stats->xdp_tx;
1457a8938cdSHaiyang Zhang xdp_redirect = rx_stats->xdp_redirect;
146068c38adSThomas Gleixner } while (u64_stats_fetch_retry(&rx_stats->syncp, start));
147ca9c54d2SDexuan Cui
148ca9c54d2SDexuan Cui data[i++] = packets;
149ca9c54d2SDexuan Cui data[i++] = bytes;
150f90f8420SHaiyang Zhang data[i++] = xdp_drop;
151d356abb9SHaiyang Zhang data[i++] = xdp_tx;
1527a8938cdSHaiyang Zhang data[i++] = xdp_redirect;
153ca9c54d2SDexuan Cui }
154ca9c54d2SDexuan Cui
155ca9c54d2SDexuan Cui for (q = 0; q < num_queues; q++) {
156f90f8420SHaiyang Zhang tx_stats = &apc->tx_qp[q].txq.stats;
157ca9c54d2SDexuan Cui
158ca9c54d2SDexuan Cui do {
159068c38adSThomas Gleixner start = u64_stats_fetch_begin(&tx_stats->syncp);
160f90f8420SHaiyang Zhang packets = tx_stats->packets;
161f90f8420SHaiyang Zhang bytes = tx_stats->bytes;
1627a8938cdSHaiyang Zhang xdp_xmit = tx_stats->xdp_xmit;
163bd7fc6e1SShradha Gupta tso_packets = tx_stats->tso_packets;
164bd7fc6e1SShradha Gupta tso_bytes = tx_stats->tso_bytes;
165bd7fc6e1SShradha Gupta tso_inner_packets = tx_stats->tso_inner_packets;
166bd7fc6e1SShradha Gupta tso_inner_bytes = tx_stats->tso_inner_bytes;
167bd7fc6e1SShradha Gupta long_pkt_fmt = tx_stats->long_pkt_fmt;
168bd7fc6e1SShradha Gupta short_pkt_fmt = tx_stats->short_pkt_fmt;
169bd7fc6e1SShradha Gupta csum_partial = tx_stats->csum_partial;
170bd7fc6e1SShradha Gupta mana_map_err = tx_stats->mana_map_err;
171068c38adSThomas Gleixner } while (u64_stats_fetch_retry(&tx_stats->syncp, start));
172ca9c54d2SDexuan Cui
173ca9c54d2SDexuan Cui data[i++] = packets;
174ca9c54d2SDexuan Cui data[i++] = bytes;
1757a8938cdSHaiyang Zhang data[i++] = xdp_xmit;
176bd7fc6e1SShradha Gupta data[i++] = tso_packets;
177bd7fc6e1SShradha Gupta data[i++] = tso_bytes;
178bd7fc6e1SShradha Gupta data[i++] = tso_inner_packets;
179bd7fc6e1SShradha Gupta data[i++] = tso_inner_bytes;
180bd7fc6e1SShradha Gupta data[i++] = long_pkt_fmt;
181bd7fc6e1SShradha Gupta data[i++] = short_pkt_fmt;
182bd7fc6e1SShradha Gupta data[i++] = csum_partial;
183bd7fc6e1SShradha Gupta data[i++] = mana_map_err;
184ca9c54d2SDexuan Cui }
185ca9c54d2SDexuan Cui }
186ca9c54d2SDexuan Cui
mana_get_rxnfc(struct net_device * ndev,struct ethtool_rxnfc * cmd,u32 * rules)187ca9c54d2SDexuan Cui static int mana_get_rxnfc(struct net_device *ndev, struct ethtool_rxnfc *cmd,
188ca9c54d2SDexuan Cui u32 *rules)
189ca9c54d2SDexuan Cui {
190ca9c54d2SDexuan Cui struct mana_port_context *apc = netdev_priv(ndev);
191ca9c54d2SDexuan Cui
192ca9c54d2SDexuan Cui switch (cmd->cmd) {
193ca9c54d2SDexuan Cui case ETHTOOL_GRXRINGS:
194ca9c54d2SDexuan Cui cmd->data = apc->num_queues;
195ca9c54d2SDexuan Cui return 0;
196ca9c54d2SDexuan Cui }
197ca9c54d2SDexuan Cui
198ca9c54d2SDexuan Cui return -EOPNOTSUPP;
199ca9c54d2SDexuan Cui }
200ca9c54d2SDexuan Cui
mana_get_rxfh_key_size(struct net_device * ndev)201ca9c54d2SDexuan Cui static u32 mana_get_rxfh_key_size(struct net_device *ndev)
202ca9c54d2SDexuan Cui {
203ca9c54d2SDexuan Cui return MANA_HASH_KEY_SIZE;
204ca9c54d2SDexuan Cui }
205ca9c54d2SDexuan Cui
mana_rss_indir_size(struct net_device * ndev)206ca9c54d2SDexuan Cui static u32 mana_rss_indir_size(struct net_device *ndev)
207ca9c54d2SDexuan Cui {
208ca9c54d2SDexuan Cui return MANA_INDIRECT_TABLE_SIZE;
209ca9c54d2SDexuan Cui }
210ca9c54d2SDexuan Cui
mana_get_rxfh(struct net_device * ndev,u32 * indir,u8 * key,u8 * hfunc)211ca9c54d2SDexuan Cui static int mana_get_rxfh(struct net_device *ndev, u32 *indir, u8 *key,
212ca9c54d2SDexuan Cui u8 *hfunc)
213ca9c54d2SDexuan Cui {
214ca9c54d2SDexuan Cui struct mana_port_context *apc = netdev_priv(ndev);
215ca9c54d2SDexuan Cui int i;
216ca9c54d2SDexuan Cui
217ca9c54d2SDexuan Cui if (hfunc)
218ca9c54d2SDexuan Cui *hfunc = ETH_RSS_HASH_TOP; /* Toeplitz */
219ca9c54d2SDexuan Cui
220ca9c54d2SDexuan Cui if (indir) {
221ca9c54d2SDexuan Cui for (i = 0; i < MANA_INDIRECT_TABLE_SIZE; i++)
222ca9c54d2SDexuan Cui indir[i] = apc->indir_table[i];
223ca9c54d2SDexuan Cui }
224ca9c54d2SDexuan Cui
225ca9c54d2SDexuan Cui if (key)
226ca9c54d2SDexuan Cui memcpy(key, apc->hashkey, MANA_HASH_KEY_SIZE);
227ca9c54d2SDexuan Cui
228ca9c54d2SDexuan Cui return 0;
229ca9c54d2SDexuan Cui }
230ca9c54d2SDexuan Cui
mana_set_rxfh(struct net_device * ndev,const u32 * indir,const u8 * key,const u8 hfunc)231ca9c54d2SDexuan Cui static int mana_set_rxfh(struct net_device *ndev, const u32 *indir,
232ca9c54d2SDexuan Cui const u8 *key, const u8 hfunc)
233ca9c54d2SDexuan Cui {
234ca9c54d2SDexuan Cui struct mana_port_context *apc = netdev_priv(ndev);
235ca9c54d2SDexuan Cui bool update_hash = false, update_table = false;
236ca9c54d2SDexuan Cui u32 save_table[MANA_INDIRECT_TABLE_SIZE];
237ca9c54d2SDexuan Cui u8 save_key[MANA_HASH_KEY_SIZE];
238ca9c54d2SDexuan Cui int i, err;
239ca9c54d2SDexuan Cui
240ca9c54d2SDexuan Cui if (!apc->port_is_up)
241ca9c54d2SDexuan Cui return -EOPNOTSUPP;
242ca9c54d2SDexuan Cui
243ca9c54d2SDexuan Cui if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP)
244ca9c54d2SDexuan Cui return -EOPNOTSUPP;
245ca9c54d2SDexuan Cui
246ca9c54d2SDexuan Cui if (indir) {
247ca9c54d2SDexuan Cui for (i = 0; i < MANA_INDIRECT_TABLE_SIZE; i++)
248ca9c54d2SDexuan Cui if (indir[i] >= apc->num_queues)
249ca9c54d2SDexuan Cui return -EINVAL;
250ca9c54d2SDexuan Cui
251ca9c54d2SDexuan Cui update_table = true;
252ca9c54d2SDexuan Cui for (i = 0; i < MANA_INDIRECT_TABLE_SIZE; i++) {
253ca9c54d2SDexuan Cui save_table[i] = apc->indir_table[i];
254ca9c54d2SDexuan Cui apc->indir_table[i] = indir[i];
255ca9c54d2SDexuan Cui }
256ca9c54d2SDexuan Cui }
257ca9c54d2SDexuan Cui
258ca9c54d2SDexuan Cui if (key) {
259ca9c54d2SDexuan Cui update_hash = true;
260ca9c54d2SDexuan Cui memcpy(save_key, apc->hashkey, MANA_HASH_KEY_SIZE);
261ca9c54d2SDexuan Cui memcpy(apc->hashkey, key, MANA_HASH_KEY_SIZE);
262ca9c54d2SDexuan Cui }
263ca9c54d2SDexuan Cui
264ca9c54d2SDexuan Cui err = mana_config_rss(apc, TRI_STATE_TRUE, update_hash, update_table);
265ca9c54d2SDexuan Cui
266ca9c54d2SDexuan Cui if (err) { /* recover to original values */
267ca9c54d2SDexuan Cui if (update_table) {
268ca9c54d2SDexuan Cui for (i = 0; i < MANA_INDIRECT_TABLE_SIZE; i++)
269ca9c54d2SDexuan Cui apc->indir_table[i] = save_table[i];
270ca9c54d2SDexuan Cui }
271ca9c54d2SDexuan Cui
272ca9c54d2SDexuan Cui if (update_hash)
273ca9c54d2SDexuan Cui memcpy(apc->hashkey, save_key, MANA_HASH_KEY_SIZE);
274ca9c54d2SDexuan Cui
275ca9c54d2SDexuan Cui mana_config_rss(apc, TRI_STATE_TRUE, update_hash, update_table);
276ca9c54d2SDexuan Cui }
277ca9c54d2SDexuan Cui
278ca9c54d2SDexuan Cui return err;
279ca9c54d2SDexuan Cui }
280ca9c54d2SDexuan Cui
mana_get_channels(struct net_device * ndev,struct ethtool_channels * channel)281ca9c54d2SDexuan Cui static void mana_get_channels(struct net_device *ndev,
282ca9c54d2SDexuan Cui struct ethtool_channels *channel)
283ca9c54d2SDexuan Cui {
284ca9c54d2SDexuan Cui struct mana_port_context *apc = netdev_priv(ndev);
285ca9c54d2SDexuan Cui
286ca9c54d2SDexuan Cui channel->max_combined = apc->max_queues;
287ca9c54d2SDexuan Cui channel->combined_count = apc->num_queues;
288ca9c54d2SDexuan Cui }
289ca9c54d2SDexuan Cui
mana_set_channels(struct net_device * ndev,struct ethtool_channels * channels)290ca9c54d2SDexuan Cui static int mana_set_channels(struct net_device *ndev,
291ca9c54d2SDexuan Cui struct ethtool_channels *channels)
292ca9c54d2SDexuan Cui {
293ca9c54d2SDexuan Cui struct mana_port_context *apc = netdev_priv(ndev);
294ca9c54d2SDexuan Cui unsigned int new_count = channels->combined_count;
295ca9c54d2SDexuan Cui unsigned int old_count = apc->num_queues;
296ca9c54d2SDexuan Cui int err, err2;
297ca9c54d2SDexuan Cui
298ca9c54d2SDexuan Cui err = mana_detach(ndev, false);
299ca9c54d2SDexuan Cui if (err) {
300ca9c54d2SDexuan Cui netdev_err(ndev, "mana_detach failed: %d\n", err);
301ca9c54d2SDexuan Cui return err;
302ca9c54d2SDexuan Cui }
303ca9c54d2SDexuan Cui
304ca9c54d2SDexuan Cui apc->num_queues = new_count;
305ca9c54d2SDexuan Cui err = mana_attach(ndev);
306ca9c54d2SDexuan Cui if (!err)
307ca9c54d2SDexuan Cui return 0;
308ca9c54d2SDexuan Cui
309ca9c54d2SDexuan Cui netdev_err(ndev, "mana_attach failed: %d\n", err);
310ca9c54d2SDexuan Cui
311ca9c54d2SDexuan Cui /* Try to roll it back to the old configuration. */
312ca9c54d2SDexuan Cui apc->num_queues = old_count;
313ca9c54d2SDexuan Cui err2 = mana_attach(ndev);
314ca9c54d2SDexuan Cui if (err2)
315ca9c54d2SDexuan Cui netdev_err(ndev, "mana re-attach failed: %d\n", err2);
316ca9c54d2SDexuan Cui
317ca9c54d2SDexuan Cui return err;
318ca9c54d2SDexuan Cui }
319ca9c54d2SDexuan Cui
320ca9c54d2SDexuan Cui const struct ethtool_ops mana_ethtool_ops = {
321ca9c54d2SDexuan Cui .get_ethtool_stats = mana_get_ethtool_stats,
322ca9c54d2SDexuan Cui .get_sset_count = mana_get_sset_count,
323ca9c54d2SDexuan Cui .get_strings = mana_get_strings,
324ca9c54d2SDexuan Cui .get_rxnfc = mana_get_rxnfc,
325ca9c54d2SDexuan Cui .get_rxfh_key_size = mana_get_rxfh_key_size,
326ca9c54d2SDexuan Cui .get_rxfh_indir_size = mana_rss_indir_size,
327ca9c54d2SDexuan Cui .get_rxfh = mana_get_rxfh,
328ca9c54d2SDexuan Cui .set_rxfh = mana_set_rxfh,
329ca9c54d2SDexuan Cui .get_channels = mana_get_channels,
330ca9c54d2SDexuan Cui .set_channels = mana_set_channels,
331ca9c54d2SDexuan Cui };
332