1 /*******************************************************************************
3 * Intel Ethernet Controller XL710 Family Linux Virtual Function Driver
4 * Copyright(c) 2013 - 2014 Intel Corporation.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 * The full GNU General Public License is included in this distribution in
16 * the file called "COPYING".
18 * Contact Information:
19 * e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
20 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
22 ******************************************************************************/
24 /* ethtool support for i40evf */
27 #include <linux/uaccess.h>
31 char stat_string
[ETH_GSTRING_LEN
];
35 #define I40EVF_STAT(_name, _stat) { \
36 .stat_string = _name, \
37 .stat_offset = offsetof(struct i40evf_adapter, _stat) \
40 /* All stats are u64, so we don't need to track the size of the field. */
41 static const struct i40evf_stats i40evf_gstrings_stats
[] = {
42 I40EVF_STAT("rx_bytes", current_stats
.rx_bytes
),
43 I40EVF_STAT("rx_unicast", current_stats
.rx_unicast
),
44 I40EVF_STAT("rx_multicast", current_stats
.rx_multicast
),
45 I40EVF_STAT("rx_broadcast", current_stats
.rx_broadcast
),
46 I40EVF_STAT("rx_discards", current_stats
.rx_discards
),
47 I40EVF_STAT("rx_errors", current_stats
.rx_errors
),
48 I40EVF_STAT("rx_missed", current_stats
.rx_missed
),
49 I40EVF_STAT("rx_unknown_protocol", current_stats
.rx_unknown_protocol
),
50 I40EVF_STAT("tx_bytes", current_stats
.tx_bytes
),
51 I40EVF_STAT("tx_unicast", current_stats
.tx_unicast
),
52 I40EVF_STAT("tx_multicast", current_stats
.tx_multicast
),
53 I40EVF_STAT("tx_broadcast", current_stats
.tx_broadcast
),
54 I40EVF_STAT("tx_discards", current_stats
.tx_discards
),
55 I40EVF_STAT("tx_errors", current_stats
.tx_errors
),
58 #define I40EVF_GLOBAL_STATS_LEN ARRAY_SIZE(i40evf_gstrings_stats)
59 #define I40EVF_QUEUE_STATS_LEN \
60 (((struct i40evf_adapter *) \
61 netdev_priv(netdev))->vsi_res->num_queue_pairs * 4)
62 #define I40EVF_STATS_LEN (I40EVF_GLOBAL_STATS_LEN + I40EVF_QUEUE_STATS_LEN)
65 * i40evf_get_settings - Get Link Speed and Duplex settings
66 * @netdev: network interface device structure
67 * @ecmd: ethtool command
69 * Reports speed/duplex settings. Because this is a VF, we don't know what
70 * kind of link we really have, so we fake it.
72 static int i40evf_get_settings(struct net_device
*netdev
,
73 struct ethtool_cmd
*ecmd
)
75 /* In the future the VF will be able to query the PF for
76 * some information - for now use a dummy value
78 ecmd
->supported
= SUPPORTED_10000baseT_Full
;
79 ecmd
->autoneg
= AUTONEG_DISABLE
;
80 ecmd
->transceiver
= XCVR_DUMMY1
;
81 ecmd
->port
= PORT_NONE
;
87 * i40evf_get_sset_count - Get length of string set
88 * @netdev: network interface device structure
89 * @sset: id of string set
91 * Reports size of string table. This driver only supports
92 * strings for statistics.
94 static int i40evf_get_sset_count(struct net_device
*netdev
, int sset
)
96 if (sset
== ETH_SS_STATS
)
97 return I40EVF_STATS_LEN
;
103 * i40evf_get_ethtool_stats - report device statistics
104 * @netdev: network interface device structure
105 * @stats: ethtool statistics structure
106 * @data: pointer to data buffer
108 * All statistics are added to the data buffer as an array of u64.
110 static void i40evf_get_ethtool_stats(struct net_device
*netdev
,
111 struct ethtool_stats
*stats
, u64
*data
)
113 struct i40evf_adapter
*adapter
= netdev_priv(netdev
);
117 for (i
= 0; i
< I40EVF_GLOBAL_STATS_LEN
; i
++) {
118 p
= (char *)adapter
+ i40evf_gstrings_stats
[i
].stat_offset
;
121 for (j
= 0; j
< adapter
->vsi_res
->num_queue_pairs
; j
++) {
122 data
[i
++] = adapter
->tx_rings
[j
]->stats
.packets
;
123 data
[i
++] = adapter
->tx_rings
[j
]->stats
.bytes
;
125 for (j
= 0; j
< adapter
->vsi_res
->num_queue_pairs
; j
++) {
126 data
[i
++] = adapter
->rx_rings
[j
]->stats
.packets
;
127 data
[i
++] = adapter
->rx_rings
[j
]->stats
.bytes
;
132 * i40evf_get_strings - Get string set
133 * @netdev: network interface device structure
134 * @sset: id of string set
135 * @data: buffer for string data
137 * Builds stats string table.
139 static void i40evf_get_strings(struct net_device
*netdev
, u32 sset
, u8
*data
)
141 struct i40evf_adapter
*adapter
= netdev_priv(netdev
);
145 if (sset
== ETH_SS_STATS
) {
146 for (i
= 0; i
< I40EVF_GLOBAL_STATS_LEN
; i
++) {
147 memcpy(p
, i40evf_gstrings_stats
[i
].stat_string
,
149 p
+= ETH_GSTRING_LEN
;
151 for (i
= 0; i
< adapter
->vsi_res
->num_queue_pairs
; i
++) {
152 snprintf(p
, ETH_GSTRING_LEN
, "tx-%u.packets", i
);
153 p
+= ETH_GSTRING_LEN
;
154 snprintf(p
, ETH_GSTRING_LEN
, "tx-%u.bytes", i
);
155 p
+= ETH_GSTRING_LEN
;
157 for (i
= 0; i
< adapter
->vsi_res
->num_queue_pairs
; i
++) {
158 snprintf(p
, ETH_GSTRING_LEN
, "rx-%u.packets", i
);
159 p
+= ETH_GSTRING_LEN
;
160 snprintf(p
, ETH_GSTRING_LEN
, "rx-%u.bytes", i
);
161 p
+= ETH_GSTRING_LEN
;
167 * i40evf_get_msglevel - Get debug message level
168 * @netdev: network interface device structure
170 * Returns current debug message level.
172 static u32
i40evf_get_msglevel(struct net_device
*netdev
)
174 struct i40evf_adapter
*adapter
= netdev_priv(netdev
);
175 return adapter
->msg_enable
;
179 * i40evf_get_msglevel - Set debug message level
180 * @netdev: network interface device structure
181 * @data: message level
183 * Set current debug message level. Higher values cause the driver to
186 static void i40evf_set_msglevel(struct net_device
*netdev
, u32 data
)
188 struct i40evf_adapter
*adapter
= netdev_priv(netdev
);
189 adapter
->msg_enable
= data
;
193 * i40evf_get_drvinto - Get driver info
194 * @netdev: network interface device structure
195 * @drvinfo: ethool driver info structure
197 * Returns information about the driver and device for display to the user.
199 static void i40evf_get_drvinfo(struct net_device
*netdev
,
200 struct ethtool_drvinfo
*drvinfo
)
202 struct i40evf_adapter
*adapter
= netdev_priv(netdev
);
204 strlcpy(drvinfo
->driver
, i40evf_driver_name
, 32);
205 strlcpy(drvinfo
->version
, i40evf_driver_version
, 32);
207 strlcpy(drvinfo
->bus_info
, pci_name(adapter
->pdev
), 32);
211 * i40evf_get_ringparam - Get ring parameters
212 * @netdev: network interface device structure
213 * @ring: ethtool ringparam structure
215 * Returns current ring parameters. TX and RX rings are reported separately,
216 * but the number of rings is not reported.
218 static void i40evf_get_ringparam(struct net_device
*netdev
,
219 struct ethtool_ringparam
*ring
)
221 struct i40evf_adapter
*adapter
= netdev_priv(netdev
);
222 struct i40e_ring
*tx_ring
= adapter
->tx_rings
[0];
223 struct i40e_ring
*rx_ring
= adapter
->rx_rings
[0];
225 ring
->rx_max_pending
= I40EVF_MAX_RXD
;
226 ring
->tx_max_pending
= I40EVF_MAX_TXD
;
227 ring
->rx_pending
= rx_ring
->count
;
228 ring
->tx_pending
= tx_ring
->count
;
232 * i40evf_set_ringparam - Set ring parameters
233 * @netdev: network interface device structure
234 * @ring: ethtool ringparam structure
236 * Sets ring parameters. TX and RX rings are controlled separately, but the
237 * number of rings is not specified, so all rings get the same settings.
239 static int i40evf_set_ringparam(struct net_device
*netdev
,
240 struct ethtool_ringparam
*ring
)
242 struct i40evf_adapter
*adapter
= netdev_priv(netdev
);
243 u32 new_rx_count
, new_tx_count
;
246 if ((ring
->rx_mini_pending
) || (ring
->rx_jumbo_pending
))
249 new_tx_count
= clamp_t(u32
, ring
->tx_pending
,
252 new_tx_count
= ALIGN(new_tx_count
, I40EVF_REQ_DESCRIPTOR_MULTIPLE
);
254 new_rx_count
= clamp_t(u32
, ring
->rx_pending
,
257 new_rx_count
= ALIGN(new_rx_count
, I40EVF_REQ_DESCRIPTOR_MULTIPLE
);
259 /* if nothing to do return success */
260 if ((new_tx_count
== adapter
->tx_rings
[0]->count
) &&
261 (new_rx_count
== adapter
->rx_rings
[0]->count
))
264 for (i
= 0; i
< adapter
->vsi_res
->num_queue_pairs
; i
++) {
265 adapter
->tx_rings
[0]->count
= new_tx_count
;
266 adapter
->rx_rings
[0]->count
= new_rx_count
;
269 if (netif_running(netdev
))
270 i40evf_reinit_locked(adapter
);
275 * i40evf_get_coalesce - Get interrupt coalescing settings
276 * @netdev: network interface device structure
277 * @ec: ethtool coalesce structure
279 * Returns current coalescing settings. This is referred to elsewhere in the
280 * driver as Interrupt Throttle Rate, as this is how the hardware describes
281 * this functionality.
283 static int i40evf_get_coalesce(struct net_device
*netdev
,
284 struct ethtool_coalesce
*ec
)
286 struct i40evf_adapter
*adapter
= netdev_priv(netdev
);
287 struct i40e_vsi
*vsi
= &adapter
->vsi
;
289 ec
->tx_max_coalesced_frames
= vsi
->work_limit
;
290 ec
->rx_max_coalesced_frames
= vsi
->work_limit
;
292 if (ITR_IS_DYNAMIC(vsi
->rx_itr_setting
))
293 ec
->rx_coalesce_usecs
= 1;
295 ec
->rx_coalesce_usecs
= vsi
->rx_itr_setting
;
297 if (ITR_IS_DYNAMIC(vsi
->tx_itr_setting
))
298 ec
->tx_coalesce_usecs
= 1;
300 ec
->tx_coalesce_usecs
= vsi
->tx_itr_setting
;
306 * i40evf_set_coalesce - Set interrupt coalescing settings
307 * @netdev: network interface device structure
308 * @ec: ethtool coalesce structure
310 * Change current coalescing settings.
312 static int i40evf_set_coalesce(struct net_device
*netdev
,
313 struct ethtool_coalesce
*ec
)
315 struct i40evf_adapter
*adapter
= netdev_priv(netdev
);
316 struct i40e_hw
*hw
= &adapter
->hw
;
317 struct i40e_vsi
*vsi
= &adapter
->vsi
;
318 struct i40e_q_vector
*q_vector
;
321 if (ec
->tx_max_coalesced_frames
|| ec
->rx_max_coalesced_frames
)
322 vsi
->work_limit
= ec
->tx_max_coalesced_frames
;
324 switch (ec
->rx_coalesce_usecs
) {
326 vsi
->rx_itr_setting
= 0;
329 vsi
->rx_itr_setting
= (I40E_ITR_DYNAMIC
330 | ITR_REG_TO_USEC(I40E_ITR_RX_DEF
));
333 if ((ec
->rx_coalesce_usecs
< (I40E_MIN_ITR
<< 1)) ||
334 (ec
->rx_coalesce_usecs
> (I40E_MAX_ITR
<< 1)))
336 vsi
->rx_itr_setting
= ec
->rx_coalesce_usecs
;
340 switch (ec
->tx_coalesce_usecs
) {
342 vsi
->tx_itr_setting
= 0;
345 vsi
->tx_itr_setting
= (I40E_ITR_DYNAMIC
346 | ITR_REG_TO_USEC(I40E_ITR_TX_DEF
));
349 if ((ec
->tx_coalesce_usecs
< (I40E_MIN_ITR
<< 1)) ||
350 (ec
->tx_coalesce_usecs
> (I40E_MAX_ITR
<< 1)))
352 vsi
->tx_itr_setting
= ec
->tx_coalesce_usecs
;
356 for (i
= 0; i
< adapter
->num_msix_vectors
- NONQ_VECS
; i
++) {
357 q_vector
= adapter
->q_vector
[i
];
358 q_vector
->rx
.itr
= ITR_TO_REG(vsi
->rx_itr_setting
);
359 wr32(hw
, I40E_VFINT_ITRN1(0, i
), q_vector
->rx
.itr
);
360 q_vector
->tx
.itr
= ITR_TO_REG(vsi
->tx_itr_setting
);
361 wr32(hw
, I40E_VFINT_ITRN1(1, i
), q_vector
->tx
.itr
);
369 * i40e_get_rss_hash_opts - Get RSS hash Input Set for each flow type
370 * @adapter: board private structure
371 * @cmd: ethtool rxnfc command
373 * Returns Success if the flow is supported, else Invalid Input.
375 static int i40evf_get_rss_hash_opts(struct i40evf_adapter
*adapter
,
376 struct ethtool_rxnfc
*cmd
)
378 struct i40e_hw
*hw
= &adapter
->hw
;
379 u64 hena
= (u64
)rd32(hw
, I40E_VFQF_HENA(0)) |
380 ((u64
)rd32(hw
, I40E_VFQF_HENA(1)) << 32);
382 /* We always hash on IP src and dest addresses */
383 cmd
->data
= RXH_IP_SRC
| RXH_IP_DST
;
385 switch (cmd
->flow_type
) {
387 if (hena
& ((u64
)1 << I40E_FILTER_PCTYPE_NONF_IPV4_TCP
))
388 cmd
->data
|= RXH_L4_B_0_1
| RXH_L4_B_2_3
;
391 if (hena
& ((u64
)1 << I40E_FILTER_PCTYPE_NONF_IPV4_UDP
))
392 cmd
->data
|= RXH_L4_B_0_1
| RXH_L4_B_2_3
;
403 if (hena
& ((u64
)1 << I40E_FILTER_PCTYPE_NONF_IPV6_TCP
))
404 cmd
->data
|= RXH_L4_B_0_1
| RXH_L4_B_2_3
;
407 if (hena
& ((u64
)1 << I40E_FILTER_PCTYPE_NONF_IPV6_UDP
))
408 cmd
->data
|= RXH_L4_B_0_1
| RXH_L4_B_2_3
;
426 * i40evf_get_rxnfc - command to get RX flow classification rules
427 * @netdev: network interface device structure
428 * @cmd: ethtool rxnfc command
430 * Returns Success if the command is supported.
432 static int i40evf_get_rxnfc(struct net_device
*netdev
,
433 struct ethtool_rxnfc
*cmd
,
436 struct i40evf_adapter
*adapter
= netdev_priv(netdev
);
437 int ret
= -EOPNOTSUPP
;
440 case ETHTOOL_GRXRINGS
:
441 cmd
->data
= adapter
->vsi_res
->num_queue_pairs
;
445 ret
= i40evf_get_rss_hash_opts(adapter
, cmd
);
455 * i40evf_set_rss_hash_opt - Enable/Disable flow types for RSS hash
456 * @adapter: board private structure
457 * @cmd: ethtool rxnfc command
459 * Returns Success if the flow input set is supported.
461 static int i40evf_set_rss_hash_opt(struct i40evf_adapter
*adapter
,
462 struct ethtool_rxnfc
*nfc
)
464 struct i40e_hw
*hw
= &adapter
->hw
;
466 u64 hena
= (u64
)rd32(hw
, I40E_VFQF_HENA(0)) |
467 ((u64
)rd32(hw
, I40E_VFQF_HENA(1)) << 32);
469 /* RSS does not support anything other than hashing
470 * to queues on src and dst IPs and ports
472 if (nfc
->data
& ~(RXH_IP_SRC
| RXH_IP_DST
|
473 RXH_L4_B_0_1
| RXH_L4_B_2_3
))
476 /* We need at least the IP SRC and DEST fields for hashing */
477 if (!(nfc
->data
& RXH_IP_SRC
) ||
478 !(nfc
->data
& RXH_IP_DST
))
481 switch (nfc
->flow_type
) {
483 switch (nfc
->data
& (RXH_L4_B_0_1
| RXH_L4_B_2_3
)) {
485 hena
&= ~((u64
)1 << I40E_FILTER_PCTYPE_NONF_IPV4_TCP
);
487 case (RXH_L4_B_0_1
| RXH_L4_B_2_3
):
488 hena
|= ((u64
)1 << I40E_FILTER_PCTYPE_NONF_IPV4_TCP
);
495 switch (nfc
->data
& (RXH_L4_B_0_1
| RXH_L4_B_2_3
)) {
497 hena
&= ~((u64
)1 << I40E_FILTER_PCTYPE_NONF_IPV6_TCP
);
499 case (RXH_L4_B_0_1
| RXH_L4_B_2_3
):
500 hena
|= ((u64
)1 << I40E_FILTER_PCTYPE_NONF_IPV6_TCP
);
507 switch (nfc
->data
& (RXH_L4_B_0_1
| RXH_L4_B_2_3
)) {
509 hena
&= ~(((u64
)1 << I40E_FILTER_PCTYPE_NONF_IPV4_UDP
) |
510 ((u64
)1 << I40E_FILTER_PCTYPE_FRAG_IPV4
));
512 case (RXH_L4_B_0_1
| RXH_L4_B_2_3
):
513 hena
|= (((u64
)1 << I40E_FILTER_PCTYPE_NONF_IPV4_UDP
) |
514 ((u64
)1 << I40E_FILTER_PCTYPE_FRAG_IPV4
));
521 switch (nfc
->data
& (RXH_L4_B_0_1
| RXH_L4_B_2_3
)) {
523 hena
&= ~(((u64
)1 << I40E_FILTER_PCTYPE_NONF_IPV6_UDP
) |
524 ((u64
)1 << I40E_FILTER_PCTYPE_FRAG_IPV6
));
526 case (RXH_L4_B_0_1
| RXH_L4_B_2_3
):
527 hena
|= (((u64
)1 << I40E_FILTER_PCTYPE_NONF_IPV6_UDP
) |
528 ((u64
)1 << I40E_FILTER_PCTYPE_FRAG_IPV6
));
538 if ((nfc
->data
& RXH_L4_B_0_1
) ||
539 (nfc
->data
& RXH_L4_B_2_3
))
541 hena
|= ((u64
)1 << I40E_FILTER_PCTYPE_NONF_IPV4_OTHER
);
547 if ((nfc
->data
& RXH_L4_B_0_1
) ||
548 (nfc
->data
& RXH_L4_B_2_3
))
550 hena
|= ((u64
)1 << I40E_FILTER_PCTYPE_NONF_IPV6_OTHER
);
553 hena
|= ((u64
)1 << I40E_FILTER_PCTYPE_NONF_IPV4_OTHER
) |
554 ((u64
)1 << I40E_FILTER_PCTYPE_FRAG_IPV4
);
557 hena
|= ((u64
)1 << I40E_FILTER_PCTYPE_NONF_IPV6_OTHER
) |
558 ((u64
)1 << I40E_FILTER_PCTYPE_FRAG_IPV6
);
564 wr32(hw
, I40E_VFQF_HENA(0), (u32
)hena
);
565 wr32(hw
, I40E_VFQF_HENA(1), (u32
)(hena
>> 32));
572 * i40evf_set_rxnfc - command to set RX flow classification rules
573 * @netdev: network interface device structure
574 * @cmd: ethtool rxnfc command
576 * Returns Success if the command is supported.
578 static int i40evf_set_rxnfc(struct net_device
*netdev
,
579 struct ethtool_rxnfc
*cmd
)
581 struct i40evf_adapter
*adapter
= netdev_priv(netdev
);
582 int ret
= -EOPNOTSUPP
;
586 ret
= i40evf_set_rss_hash_opt(adapter
, cmd
);
596 * i40evf_get_channels: get the number of channels supported by the device
597 * @netdev: network interface device structure
598 * @ch: channel information structure
600 * For the purposes of our device, we only use combined channels, i.e. a tx/rx
601 * queue pair. Report one extra channel to match our "other" MSI-X vector.
603 static void i40evf_get_channels(struct net_device
*netdev
,
604 struct ethtool_channels
*ch
)
606 struct i40evf_adapter
*adapter
= netdev_priv(netdev
);
608 /* Report maximum channels */
609 ch
->max_combined
= adapter
->vsi_res
->num_queue_pairs
;
611 ch
->max_other
= NONQ_VECS
;
612 ch
->other_count
= NONQ_VECS
;
614 ch
->combined_count
= adapter
->vsi_res
->num_queue_pairs
;
618 * i40evf_get_rxfh_indir_size - get the rx flow hash indirection table size
619 * @netdev: network interface device structure
621 * Returns the table size.
623 static u32
i40evf_get_rxfh_indir_size(struct net_device
*netdev
)
625 return (I40E_VFQF_HLUT_MAX_INDEX
+ 1) * 4;
629 * i40evf_get_rxfh_indir - get the rx flow hash indirection table
630 * @netdev: network interface device structure
631 * @indir: indirection table
633 * Reads the indirection table directly from the hardware. Always returns 0.
635 static int i40evf_get_rxfh_indir(struct net_device
*netdev
, u32
*indir
)
637 struct i40evf_adapter
*adapter
= netdev_priv(netdev
);
638 struct i40e_hw
*hw
= &adapter
->hw
;
642 for (i
= 0, j
= 0; i
< I40E_VFQF_HLUT_MAX_INDEX
; i
++) {
643 hlut_val
= rd32(hw
, I40E_VFQF_HLUT(i
));
644 indir
[j
++] = hlut_val
& 0xff;
645 indir
[j
++] = (hlut_val
>> 8) & 0xff;
646 indir
[j
++] = (hlut_val
>> 16) & 0xff;
647 indir
[j
++] = (hlut_val
>> 24) & 0xff;
653 * i40evf_set_rxfh_indir - set the rx flow hash indirection table
654 * @netdev: network interface device structure
655 * @indir: indirection table
657 * Returns -EINVAL if the table specifies an inavlid queue id, otherwise
658 * returns 0 after programming the table.
660 static int i40evf_set_rxfh_indir(struct net_device
*netdev
, const u32
*indir
)
662 struct i40evf_adapter
*adapter
= netdev_priv(netdev
);
663 struct i40e_hw
*hw
= &adapter
->hw
;
667 for (i
= 0, j
= 0; i
< I40E_VFQF_HLUT_MAX_INDEX
+ 1; i
++) {
668 hlut_val
= indir
[j
++];
669 hlut_val
|= indir
[j
++] << 8;
670 hlut_val
|= indir
[j
++] << 16;
671 hlut_val
|= indir
[j
++] << 24;
672 wr32(hw
, I40E_VFQF_HLUT(i
), hlut_val
);
678 static struct ethtool_ops i40evf_ethtool_ops
= {
679 .get_settings
= i40evf_get_settings
,
680 .get_drvinfo
= i40evf_get_drvinfo
,
681 .get_link
= ethtool_op_get_link
,
682 .get_ringparam
= i40evf_get_ringparam
,
683 .set_ringparam
= i40evf_set_ringparam
,
684 .get_strings
= i40evf_get_strings
,
685 .get_ethtool_stats
= i40evf_get_ethtool_stats
,
686 .get_sset_count
= i40evf_get_sset_count
,
687 .get_msglevel
= i40evf_get_msglevel
,
688 .set_msglevel
= i40evf_set_msglevel
,
689 .get_coalesce
= i40evf_get_coalesce
,
690 .set_coalesce
= i40evf_set_coalesce
,
691 .get_rxnfc
= i40evf_get_rxnfc
,
692 .set_rxnfc
= i40evf_set_rxnfc
,
693 .get_rxfh_indir_size
= i40evf_get_rxfh_indir_size
,
694 .get_rxfh_indir
= i40evf_get_rxfh_indir
,
695 .set_rxfh_indir
= i40evf_set_rxfh_indir
,
696 .get_channels
= i40evf_get_channels
,
700 * i40evf_set_ethtool_ops - Initialize ethtool ops struct
701 * @netdev: network interface device structure
703 * Sets ethtool ops struct in our netdev so that ethtool can call
706 void i40evf_set_ethtool_ops(struct net_device
*netdev
)
708 netdev
->ethtool_ops
= &i40evf_ethtool_ops
;