ixgbe.h 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986
  1. /*******************************************************************************
  2. Intel 10 Gigabit PCI Express Linux driver
  3. Copyright(c) 1999 - 2013 Intel Corporation.
  4. This program is free software; you can redistribute it and/or modify it
  5. under the terms and conditions of the GNU General Public License,
  6. version 2, as published by the Free Software Foundation.
  7. This program is distributed in the hope it will be useful, but WITHOUT
  8. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  9. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  10. more details.
  11. You should have received a copy of the GNU General Public License along with
  12. this program; if not, write to the Free Software Foundation, Inc.,
  13. 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
  14. The full GNU General Public License is included in this distribution in
  15. the file called "COPYING".
  16. Contact Information:
  17. Linux NICS <linux.nics@intel.com>
  18. e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
  19. Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
  20. *******************************************************************************/
  21. #ifndef _IXGBE_H_
  22. #define _IXGBE_H_
  23. #include <linux/bitops.h>
  24. #include <linux/types.h>
  25. #include <linux/pci.h>
  26. #include <linux/netdevice.h>
  27. #include <linux/cpumask.h>
  28. #include <linux/aer.h>
  29. #include <linux/if_vlan.h>
  30. #include <linux/jiffies.h>
  31. #include <linux/timecounter.h>
  32. #include <linux/net_tstamp.h>
  33. #include <linux/ptp_clock_kernel.h>
  34. #include "ixgbe_type.h"
  35. #include "ixgbe_common.h"
  36. #include "ixgbe_dcb.h"
  37. #if defined(CONFIG_FCOE) || defined(CONFIG_FCOE_MODULE)
  38. #define IXGBE_FCOE
  39. #include "ixgbe_fcoe.h"
  40. #endif /* CONFIG_FCOE or CONFIG_FCOE_MODULE */
  41. #ifdef CONFIG_IXGBE_DCA
  42. #include <linux/dca.h>
  43. #endif
  44. #include <net/busy_poll.h>
  45. #ifdef CONFIG_NET_RX_BUSY_POLL
  46. #define BP_EXTENDED_STATS
  47. #endif
  48. /* common prefix used by pr_<> macros */
  49. #undef pr_fmt
  50. #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
  51. /* TX/RX descriptor defines */
  52. #define IXGBE_DEFAULT_TXD 512
  53. #define IXGBE_DEFAULT_TX_WORK 256
  54. #define IXGBE_MAX_TXD 4096
  55. #define IXGBE_MIN_TXD 64
  56. #if (PAGE_SIZE < 8192)
  57. #define IXGBE_DEFAULT_RXD 512
  58. #else
  59. #define IXGBE_DEFAULT_RXD 128
  60. #endif
  61. #define IXGBE_MAX_RXD 4096
  62. #define IXGBE_MIN_RXD 64
  63. #define IXGBE_ETH_P_LLDP 0x88CC
  64. /* flow control */
  65. #define IXGBE_MIN_FCRTL 0x40
  66. #define IXGBE_MAX_FCRTL 0x7FF80
  67. #define IXGBE_MIN_FCRTH 0x600
  68. #define IXGBE_MAX_FCRTH 0x7FFF0
  69. #define IXGBE_DEFAULT_FCPAUSE 0xFFFF
  70. #define IXGBE_MIN_FCPAUSE 0
  71. #define IXGBE_MAX_FCPAUSE 0xFFFF
  72. /* Supported Rx Buffer Sizes */
  73. #define IXGBE_RXBUFFER_256 256 /* Used for skb receive header */
  74. #define IXGBE_RXBUFFER_2K 2048
  75. #define IXGBE_RXBUFFER_3K 3072
  76. #define IXGBE_RXBUFFER_4K 4096
  77. #define IXGBE_MAX_RXBUFFER 16384 /* largest size for a single descriptor */
  78. /*
  79. * NOTE: netdev_alloc_skb reserves up to 64 bytes, NET_IP_ALIGN means we
  80. * reserve 64 more, and skb_shared_info adds an additional 320 bytes more,
  81. * this adds up to 448 bytes of extra data.
  82. *
  83. * Since netdev_alloc_skb now allocates a page fragment we can use a value
  84. * of 256 and the resultant skb will have a truesize of 960 or less.
  85. */
  86. #define IXGBE_RX_HDR_SIZE IXGBE_RXBUFFER_256
  87. /* How many Rx Buffers do we bundle into one write to the hardware ? */
  88. #define IXGBE_RX_BUFFER_WRITE 16 /* Must be power of 2 */
  89. enum ixgbe_tx_flags {
  90. /* cmd_type flags */
  91. IXGBE_TX_FLAGS_HW_VLAN = 0x01,
  92. IXGBE_TX_FLAGS_TSO = 0x02,
  93. IXGBE_TX_FLAGS_TSTAMP = 0x04,
  94. /* olinfo flags */
  95. IXGBE_TX_FLAGS_CC = 0x08,
  96. IXGBE_TX_FLAGS_IPV4 = 0x10,
  97. IXGBE_TX_FLAGS_CSUM = 0x20,
  98. /* software defined flags */
  99. IXGBE_TX_FLAGS_SW_VLAN = 0x40,
  100. IXGBE_TX_FLAGS_FCOE = 0x80,
  101. };
  102. /* VLAN info */
  103. #define IXGBE_TX_FLAGS_VLAN_MASK 0xffff0000
  104. #define IXGBE_TX_FLAGS_VLAN_PRIO_MASK 0xe0000000
  105. #define IXGBE_TX_FLAGS_VLAN_PRIO_SHIFT 29
  106. #define IXGBE_TX_FLAGS_VLAN_SHIFT 16
  107. #define IXGBE_MAX_VF_MC_ENTRIES 30
  108. #define IXGBE_MAX_VF_FUNCTIONS 64
  109. #define IXGBE_MAX_VFTA_ENTRIES 128
  110. #define MAX_EMULATION_MAC_ADDRS 16
  111. #define IXGBE_MAX_PF_MACVLANS 15
  112. #define VMDQ_P(p) ((p) + adapter->ring_feature[RING_F_VMDQ].offset)
  113. #define IXGBE_82599_VF_DEVICE_ID 0x10ED
  114. #define IXGBE_X540_VF_DEVICE_ID 0x1515
  115. struct vf_data_storage {
  116. unsigned char vf_mac_addresses[ETH_ALEN];
  117. u16 vf_mc_hashes[IXGBE_MAX_VF_MC_ENTRIES];
  118. u16 num_vf_mc_hashes;
  119. u16 default_vf_vlan_id;
  120. u16 vlans_enabled;
  121. bool clear_to_send;
  122. bool pf_set_mac;
  123. u16 pf_vlan; /* When set, guest VLAN config not allowed. */
  124. u16 pf_qos;
  125. u16 tx_rate;
  126. u16 vlan_count;
  127. u8 spoofchk_enabled;
  128. bool rss_query_enabled;
  129. u8 trusted;
  130. int xcast_mode;
  131. unsigned int vf_api;
  132. };
  133. enum ixgbevf_xcast_modes {
  134. IXGBEVF_XCAST_MODE_NONE = 0,
  135. IXGBEVF_XCAST_MODE_MULTI,
  136. IXGBEVF_XCAST_MODE_ALLMULTI,
  137. };
  138. struct vf_macvlans {
  139. struct list_head l;
  140. int vf;
  141. bool free;
  142. bool is_macvlan;
  143. u8 vf_macvlan[ETH_ALEN];
  144. };
  145. #define IXGBE_MAX_TXD_PWR 14
  146. #define IXGBE_MAX_DATA_PER_TXD (1 << IXGBE_MAX_TXD_PWR)
  147. /* Tx Descriptors needed, worst case */
  148. #define TXD_USE_COUNT(S) DIV_ROUND_UP((S), IXGBE_MAX_DATA_PER_TXD)
  149. #define DESC_NEEDED (MAX_SKB_FRAGS + 4)
  150. /* wrapper around a pointer to a socket buffer,
  151. * so a DMA handle can be stored along with the buffer */
  152. struct ixgbe_tx_buffer {
  153. union ixgbe_adv_tx_desc *next_to_watch;
  154. unsigned long time_stamp;
  155. struct sk_buff *skb;
  156. unsigned int bytecount;
  157. unsigned short gso_segs;
  158. __be16 protocol;
  159. DEFINE_DMA_UNMAP_ADDR(dma);
  160. DEFINE_DMA_UNMAP_LEN(len);
  161. u32 tx_flags;
  162. };
  163. struct ixgbe_rx_buffer {
  164. struct sk_buff *skb;
  165. dma_addr_t dma;
  166. struct page *page;
  167. unsigned int page_offset;
  168. };
  169. struct ixgbe_queue_stats {
  170. u64 packets;
  171. u64 bytes;
  172. #ifdef BP_EXTENDED_STATS
  173. u64 yields;
  174. u64 misses;
  175. u64 cleaned;
  176. #endif /* BP_EXTENDED_STATS */
  177. };
  178. struct ixgbe_tx_queue_stats {
  179. u64 restart_queue;
  180. u64 tx_busy;
  181. u64 tx_done_old;
  182. };
  183. struct ixgbe_rx_queue_stats {
  184. u64 rsc_count;
  185. u64 rsc_flush;
  186. u64 non_eop_descs;
  187. u64 alloc_rx_page_failed;
  188. u64 alloc_rx_buff_failed;
  189. u64 csum_err;
  190. };
  191. enum ixgbe_ring_state_t {
  192. __IXGBE_TX_FDIR_INIT_DONE,
  193. __IXGBE_TX_XPS_INIT_DONE,
  194. __IXGBE_TX_DETECT_HANG,
  195. __IXGBE_HANG_CHECK_ARMED,
  196. __IXGBE_RX_RSC_ENABLED,
  197. __IXGBE_RX_CSUM_UDP_ZERO_ERR,
  198. __IXGBE_RX_FCOE,
  199. };
  200. struct ixgbe_fwd_adapter {
  201. unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
  202. struct net_device *netdev;
  203. struct ixgbe_adapter *real_adapter;
  204. unsigned int tx_base_queue;
  205. unsigned int rx_base_queue;
  206. int pool;
  207. };
  208. #define check_for_tx_hang(ring) \
  209. test_bit(__IXGBE_TX_DETECT_HANG, &(ring)->state)
  210. #define set_check_for_tx_hang(ring) \
  211. set_bit(__IXGBE_TX_DETECT_HANG, &(ring)->state)
  212. #define clear_check_for_tx_hang(ring) \
  213. clear_bit(__IXGBE_TX_DETECT_HANG, &(ring)->state)
  214. #define ring_is_rsc_enabled(ring) \
  215. test_bit(__IXGBE_RX_RSC_ENABLED, &(ring)->state)
  216. #define set_ring_rsc_enabled(ring) \
  217. set_bit(__IXGBE_RX_RSC_ENABLED, &(ring)->state)
  218. #define clear_ring_rsc_enabled(ring) \
  219. clear_bit(__IXGBE_RX_RSC_ENABLED, &(ring)->state)
  220. struct ixgbe_ring {
  221. struct ixgbe_ring *next; /* pointer to next ring in q_vector */
  222. struct ixgbe_q_vector *q_vector; /* backpointer to host q_vector */
  223. struct net_device *netdev; /* netdev ring belongs to */
  224. struct device *dev; /* device for DMA mapping */
  225. struct ixgbe_fwd_adapter *l2_accel_priv;
  226. void *desc; /* descriptor ring memory */
  227. union {
  228. struct ixgbe_tx_buffer *tx_buffer_info;
  229. struct ixgbe_rx_buffer *rx_buffer_info;
  230. };
  231. unsigned long state;
  232. u8 __iomem *tail;
  233. dma_addr_t dma; /* phys. address of descriptor ring */
  234. unsigned int size; /* length in bytes */
  235. u16 count; /* amount of descriptors */
  236. u8 queue_index; /* needed for multiqueue queue management */
  237. u8 reg_idx; /* holds the special value that gets
  238. * the hardware register offset
  239. * associated with this ring, which is
  240. * different for DCB and RSS modes
  241. */
  242. u16 next_to_use;
  243. u16 next_to_clean;
  244. union {
  245. u16 next_to_alloc;
  246. struct {
  247. u8 atr_sample_rate;
  248. u8 atr_count;
  249. };
  250. };
  251. u8 dcb_tc;
  252. struct ixgbe_queue_stats stats;
  253. struct u64_stats_sync syncp;
  254. union {
  255. struct ixgbe_tx_queue_stats tx_stats;
  256. struct ixgbe_rx_queue_stats rx_stats;
  257. };
  258. } ____cacheline_internodealigned_in_smp;
  259. enum ixgbe_ring_f_enum {
  260. RING_F_NONE = 0,
  261. RING_F_VMDQ, /* SR-IOV uses the same ring feature */
  262. RING_F_RSS,
  263. RING_F_FDIR,
  264. #ifdef IXGBE_FCOE
  265. RING_F_FCOE,
  266. #endif /* IXGBE_FCOE */
  267. RING_F_ARRAY_SIZE /* must be last in enum set */
  268. };
  269. #define IXGBE_MAX_RSS_INDICES 16
  270. #define IXGBE_MAX_RSS_INDICES_X550 63
  271. #define IXGBE_MAX_VMDQ_INDICES 64
  272. #define IXGBE_MAX_FDIR_INDICES 63 /* based on q_vector limit */
  273. #define IXGBE_MAX_FCOE_INDICES 8
  274. #define MAX_RX_QUEUES (IXGBE_MAX_FDIR_INDICES + 1)
  275. #define MAX_TX_QUEUES (IXGBE_MAX_FDIR_INDICES + 1)
  276. #define IXGBE_MAX_L2A_QUEUES 4
  277. #define IXGBE_BAD_L2A_QUEUE 3
  278. #define IXGBE_MAX_MACVLANS 31
  279. #define IXGBE_MAX_DCBMACVLANS 8
  280. struct ixgbe_ring_feature {
  281. u16 limit; /* upper limit on feature indices */
  282. u16 indices; /* current value of indices */
  283. u16 mask; /* Mask used for feature to ring mapping */
  284. u16 offset; /* offset to start of feature */
  285. } ____cacheline_internodealigned_in_smp;
  286. #define IXGBE_82599_VMDQ_8Q_MASK 0x78
  287. #define IXGBE_82599_VMDQ_4Q_MASK 0x7C
  288. #define IXGBE_82599_VMDQ_2Q_MASK 0x7E
  289. /*
  290. * FCoE requires that all Rx buffers be over 2200 bytes in length. Since
  291. * this is twice the size of a half page we need to double the page order
  292. * for FCoE enabled Rx queues.
  293. */
  294. static inline unsigned int ixgbe_rx_bufsz(struct ixgbe_ring *ring)
  295. {
  296. #ifdef IXGBE_FCOE
  297. if (test_bit(__IXGBE_RX_FCOE, &ring->state))
  298. return (PAGE_SIZE < 8192) ? IXGBE_RXBUFFER_4K :
  299. IXGBE_RXBUFFER_3K;
  300. #endif
  301. return IXGBE_RXBUFFER_2K;
  302. }
  303. static inline unsigned int ixgbe_rx_pg_order(struct ixgbe_ring *ring)
  304. {
  305. #ifdef IXGBE_FCOE
  306. if (test_bit(__IXGBE_RX_FCOE, &ring->state))
  307. return (PAGE_SIZE < 8192) ? 1 : 0;
  308. #endif
  309. return 0;
  310. }
  311. #define ixgbe_rx_pg_size(_ring) (PAGE_SIZE << ixgbe_rx_pg_order(_ring))
  312. struct ixgbe_ring_container {
  313. struct ixgbe_ring *ring; /* pointer to linked list of rings */
  314. unsigned int total_bytes; /* total bytes processed this int */
  315. unsigned int total_packets; /* total packets processed this int */
  316. u16 work_limit; /* total work allowed per interrupt */
  317. u8 count; /* total number of rings in vector */
  318. u8 itr; /* current ITR setting for ring */
  319. };
  320. /* iterator for handling rings in ring container */
  321. #define ixgbe_for_each_ring(pos, head) \
  322. for (pos = (head).ring; pos != NULL; pos = pos->next)
  323. #define MAX_RX_PACKET_BUFFERS ((adapter->flags & IXGBE_FLAG_DCB_ENABLED) \
  324. ? 8 : 1)
  325. #define MAX_TX_PACKET_BUFFERS MAX_RX_PACKET_BUFFERS
  326. /* MAX_Q_VECTORS of these are allocated,
  327. * but we only use one per queue-specific vector.
  328. */
  329. struct ixgbe_q_vector {
  330. struct ixgbe_adapter *adapter;
  331. #ifdef CONFIG_IXGBE_DCA
  332. int cpu; /* CPU for DCA */
  333. #endif
  334. u16 v_idx; /* index of q_vector within array, also used for
  335. * finding the bit in EICR and friends that
  336. * represents the vector for this ring */
  337. u16 itr; /* Interrupt throttle rate written to EITR */
  338. struct ixgbe_ring_container rx, tx;
  339. struct napi_struct napi;
  340. cpumask_t affinity_mask;
  341. int numa_node;
  342. struct rcu_head rcu; /* to avoid race with update stats on free */
  343. char name[IFNAMSIZ + 9];
  344. #ifdef CONFIG_NET_RX_BUSY_POLL
  345. atomic_t state;
  346. #endif /* CONFIG_NET_RX_BUSY_POLL */
  347. /* for dynamic allocation of rings associated with this q_vector */
  348. struct ixgbe_ring ring[0] ____cacheline_internodealigned_in_smp;
  349. };
  350. #ifdef CONFIG_NET_RX_BUSY_POLL
  351. enum ixgbe_qv_state_t {
  352. IXGBE_QV_STATE_IDLE = 0,
  353. IXGBE_QV_STATE_NAPI,
  354. IXGBE_QV_STATE_POLL,
  355. IXGBE_QV_STATE_DISABLE
  356. };
  357. static inline void ixgbe_qv_init_lock(struct ixgbe_q_vector *q_vector)
  358. {
  359. /* reset state to idle */
  360. atomic_set(&q_vector->state, IXGBE_QV_STATE_IDLE);
  361. }
  362. /* called from the device poll routine to get ownership of a q_vector */
  363. static inline bool ixgbe_qv_lock_napi(struct ixgbe_q_vector *q_vector)
  364. {
  365. int rc = atomic_cmpxchg(&q_vector->state, IXGBE_QV_STATE_IDLE,
  366. IXGBE_QV_STATE_NAPI);
  367. #ifdef BP_EXTENDED_STATS
  368. if (rc != IXGBE_QV_STATE_IDLE)
  369. q_vector->tx.ring->stats.yields++;
  370. #endif
  371. return rc == IXGBE_QV_STATE_IDLE;
  372. }
  373. /* returns true is someone tried to get the qv while napi had it */
  374. static inline void ixgbe_qv_unlock_napi(struct ixgbe_q_vector *q_vector)
  375. {
  376. WARN_ON(atomic_read(&q_vector->state) != IXGBE_QV_STATE_NAPI);
  377. /* flush any outstanding Rx frames */
  378. if (q_vector->napi.gro_list)
  379. napi_gro_flush(&q_vector->napi, false);
  380. /* reset state to idle */
  381. atomic_set(&q_vector->state, IXGBE_QV_STATE_IDLE);
  382. }
  383. /* called from ixgbe_low_latency_poll() */
  384. static inline bool ixgbe_qv_lock_poll(struct ixgbe_q_vector *q_vector)
  385. {
  386. int rc = atomic_cmpxchg(&q_vector->state, IXGBE_QV_STATE_IDLE,
  387. IXGBE_QV_STATE_POLL);
  388. #ifdef BP_EXTENDED_STATS
  389. if (rc != IXGBE_QV_STATE_IDLE)
  390. q_vector->tx.ring->stats.yields++;
  391. #endif
  392. return rc == IXGBE_QV_STATE_IDLE;
  393. }
  394. /* returns true if someone tried to get the qv while it was locked */
  395. static inline void ixgbe_qv_unlock_poll(struct ixgbe_q_vector *q_vector)
  396. {
  397. WARN_ON(atomic_read(&q_vector->state) != IXGBE_QV_STATE_POLL);
  398. /* reset state to idle */
  399. atomic_set(&q_vector->state, IXGBE_QV_STATE_IDLE);
  400. }
  401. /* true if a socket is polling, even if it did not get the lock */
  402. static inline bool ixgbe_qv_busy_polling(struct ixgbe_q_vector *q_vector)
  403. {
  404. return atomic_read(&q_vector->state) == IXGBE_QV_STATE_POLL;
  405. }
  406. /* false if QV is currently owned */
  407. static inline bool ixgbe_qv_disable(struct ixgbe_q_vector *q_vector)
  408. {
  409. int rc = atomic_cmpxchg(&q_vector->state, IXGBE_QV_STATE_IDLE,
  410. IXGBE_QV_STATE_DISABLE);
  411. return rc == IXGBE_QV_STATE_IDLE;
  412. }
  413. #else /* CONFIG_NET_RX_BUSY_POLL */
  414. static inline void ixgbe_qv_init_lock(struct ixgbe_q_vector *q_vector)
  415. {
  416. }
  417. static inline bool ixgbe_qv_lock_napi(struct ixgbe_q_vector *q_vector)
  418. {
  419. return true;
  420. }
  421. static inline bool ixgbe_qv_unlock_napi(struct ixgbe_q_vector *q_vector)
  422. {
  423. return false;
  424. }
  425. static inline bool ixgbe_qv_lock_poll(struct ixgbe_q_vector *q_vector)
  426. {
  427. return false;
  428. }
  429. static inline bool ixgbe_qv_unlock_poll(struct ixgbe_q_vector *q_vector)
  430. {
  431. return false;
  432. }
  433. static inline bool ixgbe_qv_busy_polling(struct ixgbe_q_vector *q_vector)
  434. {
  435. return false;
  436. }
  437. static inline bool ixgbe_qv_disable(struct ixgbe_q_vector *q_vector)
  438. {
  439. return true;
  440. }
  441. #endif /* CONFIG_NET_RX_BUSY_POLL */
  442. #ifdef CONFIG_IXGBE_HWMON
  443. #define IXGBE_HWMON_TYPE_LOC 0
  444. #define IXGBE_HWMON_TYPE_TEMP 1
  445. #define IXGBE_HWMON_TYPE_CAUTION 2
  446. #define IXGBE_HWMON_TYPE_MAX 3
  447. struct hwmon_attr {
  448. struct device_attribute dev_attr;
  449. struct ixgbe_hw *hw;
  450. struct ixgbe_thermal_diode_data *sensor;
  451. char name[12];
  452. };
  453. struct hwmon_buff {
  454. struct attribute_group group;
  455. const struct attribute_group *groups[2];
  456. struct attribute *attrs[IXGBE_MAX_SENSORS * 4 + 1];
  457. struct hwmon_attr hwmon_list[IXGBE_MAX_SENSORS * 4];
  458. unsigned int n_hwmon;
  459. };
  460. #endif /* CONFIG_IXGBE_HWMON */
  461. /*
  462. * microsecond values for various ITR rates shifted by 2 to fit itr register
  463. * with the first 3 bits reserved 0
  464. */
  465. #define IXGBE_MIN_RSC_ITR 24
  466. #define IXGBE_100K_ITR 40
  467. #define IXGBE_20K_ITR 200
  468. #define IXGBE_12K_ITR 336
  469. /* ixgbe_test_staterr - tests bits in Rx descriptor status and error fields */
  470. static inline __le32 ixgbe_test_staterr(union ixgbe_adv_rx_desc *rx_desc,
  471. const u32 stat_err_bits)
  472. {
  473. return rx_desc->wb.upper.status_error & cpu_to_le32(stat_err_bits);
  474. }
  475. static inline u16 ixgbe_desc_unused(struct ixgbe_ring *ring)
  476. {
  477. u16 ntc = ring->next_to_clean;
  478. u16 ntu = ring->next_to_use;
  479. return ((ntc > ntu) ? 0 : ring->count) + ntc - ntu - 1;
  480. }
  481. #define IXGBE_RX_DESC(R, i) \
  482. (&(((union ixgbe_adv_rx_desc *)((R)->desc))[i]))
  483. #define IXGBE_TX_DESC(R, i) \
  484. (&(((union ixgbe_adv_tx_desc *)((R)->desc))[i]))
  485. #define IXGBE_TX_CTXTDESC(R, i) \
  486. (&(((struct ixgbe_adv_tx_context_desc *)((R)->desc))[i]))
  487. #define IXGBE_MAX_JUMBO_FRAME_SIZE 9728 /* Maximum Supported Size 9.5KB */
  488. #ifdef IXGBE_FCOE
  489. /* Use 3K as the baby jumbo frame size for FCoE */
  490. #define IXGBE_FCOE_JUMBO_FRAME_SIZE 3072
  491. #endif /* IXGBE_FCOE */
  492. #define OTHER_VECTOR 1
  493. #define NON_Q_VECTORS (OTHER_VECTOR)
  494. #define MAX_MSIX_VECTORS_82599 64
  495. #define MAX_Q_VECTORS_82599 64
  496. #define MAX_MSIX_VECTORS_82598 18
  497. #define MAX_Q_VECTORS_82598 16
  498. struct ixgbe_mac_addr {
  499. u8 addr[ETH_ALEN];
  500. u16 queue;
  501. u16 state; /* bitmask */
  502. };
  503. #define IXGBE_MAC_STATE_DEFAULT 0x1
  504. #define IXGBE_MAC_STATE_MODIFIED 0x2
  505. #define IXGBE_MAC_STATE_IN_USE 0x4
  506. #define MAX_Q_VECTORS MAX_Q_VECTORS_82599
  507. #define MAX_MSIX_COUNT MAX_MSIX_VECTORS_82599
  508. #define MIN_MSIX_Q_VECTORS 1
  509. #define MIN_MSIX_COUNT (MIN_MSIX_Q_VECTORS + NON_Q_VECTORS)
  510. /* default to trying for four seconds */
  511. #define IXGBE_TRY_LINK_TIMEOUT (4 * HZ)
  512. #define IXGBE_SFP_POLL_JIFFIES (2 * HZ) /* SFP poll every 2 seconds */
  513. /* board specific private data structure */
  514. struct ixgbe_adapter {
  515. unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
  516. /* OS defined structs */
  517. struct net_device *netdev;
  518. struct pci_dev *pdev;
  519. unsigned long state;
  520. /* Some features need tri-state capability,
  521. * thus the additional *_CAPABLE flags.
  522. */
  523. u32 flags;
  524. #define IXGBE_FLAG_MSI_ENABLED (u32)(1 << 1)
  525. #define IXGBE_FLAG_MSIX_ENABLED (u32)(1 << 3)
  526. #define IXGBE_FLAG_RX_1BUF_CAPABLE (u32)(1 << 4)
  527. #define IXGBE_FLAG_RX_PS_CAPABLE (u32)(1 << 5)
  528. #define IXGBE_FLAG_RX_PS_ENABLED (u32)(1 << 6)
  529. #define IXGBE_FLAG_DCA_ENABLED (u32)(1 << 8)
  530. #define IXGBE_FLAG_DCA_CAPABLE (u32)(1 << 9)
  531. #define IXGBE_FLAG_IMIR_ENABLED (u32)(1 << 10)
  532. #define IXGBE_FLAG_MQ_CAPABLE (u32)(1 << 11)
  533. #define IXGBE_FLAG_DCB_ENABLED (u32)(1 << 12)
  534. #define IXGBE_FLAG_VMDQ_CAPABLE (u32)(1 << 13)
  535. #define IXGBE_FLAG_VMDQ_ENABLED (u32)(1 << 14)
  536. #define IXGBE_FLAG_FAN_FAIL_CAPABLE (u32)(1 << 15)
  537. #define IXGBE_FLAG_NEED_LINK_UPDATE (u32)(1 << 16)
  538. #define IXGBE_FLAG_NEED_LINK_CONFIG (u32)(1 << 17)
  539. #define IXGBE_FLAG_FDIR_HASH_CAPABLE (u32)(1 << 18)
  540. #define IXGBE_FLAG_FDIR_PERFECT_CAPABLE (u32)(1 << 19)
  541. #define IXGBE_FLAG_FCOE_CAPABLE (u32)(1 << 20)
  542. #define IXGBE_FLAG_FCOE_ENABLED (u32)(1 << 21)
  543. #define IXGBE_FLAG_SRIOV_CAPABLE (u32)(1 << 22)
  544. #define IXGBE_FLAG_SRIOV_ENABLED (u32)(1 << 23)
  545. #define IXGBE_FLAG_VXLAN_OFFLOAD_CAPABLE BIT(24)
  546. u32 flags2;
  547. #define IXGBE_FLAG2_RSC_CAPABLE (u32)(1 << 0)
  548. #define IXGBE_FLAG2_RSC_ENABLED (u32)(1 << 1)
  549. #define IXGBE_FLAG2_TEMP_SENSOR_CAPABLE (u32)(1 << 2)
  550. #define IXGBE_FLAG2_TEMP_SENSOR_EVENT (u32)(1 << 3)
  551. #define IXGBE_FLAG2_SEARCH_FOR_SFP (u32)(1 << 4)
  552. #define IXGBE_FLAG2_SFP_NEEDS_RESET (u32)(1 << 5)
  553. #define IXGBE_FLAG2_RESET_REQUESTED (u32)(1 << 6)
  554. #define IXGBE_FLAG2_FDIR_REQUIRES_REINIT (u32)(1 << 7)
  555. #define IXGBE_FLAG2_RSS_FIELD_IPV4_UDP (u32)(1 << 8)
  556. #define IXGBE_FLAG2_RSS_FIELD_IPV6_UDP (u32)(1 << 9)
  557. #define IXGBE_FLAG2_PTP_PPS_ENABLED (u32)(1 << 10)
  558. #define IXGBE_FLAG2_PHY_INTERRUPT (u32)(1 << 11)
  559. #ifdef CONFIG_IXGBE_VXLAN
  560. #define IXGBE_FLAG2_VXLAN_REREG_NEEDED BIT(12)
  561. #endif
  562. /* Tx fast path data */
  563. int num_tx_queues;
  564. u16 tx_itr_setting;
  565. u16 tx_work_limit;
  566. /* Rx fast path data */
  567. int num_rx_queues;
  568. u16 rx_itr_setting;
  569. /* TX */
  570. struct ixgbe_ring *tx_ring[MAX_TX_QUEUES] ____cacheline_aligned_in_smp;
  571. u64 restart_queue;
  572. u64 lsc_int;
  573. u32 tx_timeout_count;
  574. /* RX */
  575. struct ixgbe_ring *rx_ring[MAX_RX_QUEUES];
  576. int num_rx_pools; /* == num_rx_queues in 82598 */
  577. int num_rx_queues_per_pool; /* 1 if 82598, can be many if 82599 */
  578. u64 hw_csum_rx_error;
  579. u64 hw_rx_no_dma_resources;
  580. u64 rsc_total_count;
  581. u64 rsc_total_flush;
  582. u64 non_eop_descs;
  583. u32 alloc_rx_page_failed;
  584. u32 alloc_rx_buff_failed;
  585. struct ixgbe_q_vector *q_vector[MAX_Q_VECTORS];
  586. /* DCB parameters */
  587. struct ieee_pfc *ixgbe_ieee_pfc;
  588. struct ieee_ets *ixgbe_ieee_ets;
  589. struct ixgbe_dcb_config dcb_cfg;
  590. struct ixgbe_dcb_config temp_dcb_cfg;
  591. u8 dcb_set_bitmap;
  592. u8 dcbx_cap;
  593. enum ixgbe_fc_mode last_lfc_mode;
  594. int num_q_vectors; /* current number of q_vectors for device */
  595. int max_q_vectors; /* true count of q_vectors for device */
  596. struct ixgbe_ring_feature ring_feature[RING_F_ARRAY_SIZE];
  597. struct msix_entry *msix_entries;
  598. u32 test_icr;
  599. struct ixgbe_ring test_tx_ring;
  600. struct ixgbe_ring test_rx_ring;
  601. /* structs defined in ixgbe_hw.h */
  602. struct ixgbe_hw hw;
  603. u16 msg_enable;
  604. struct ixgbe_hw_stats stats;
  605. u64 tx_busy;
  606. unsigned int tx_ring_count;
  607. unsigned int rx_ring_count;
  608. u32 link_speed;
  609. bool link_up;
  610. unsigned long sfp_poll_time;
  611. unsigned long link_check_timeout;
  612. struct timer_list service_timer;
  613. struct work_struct service_task;
  614. struct hlist_head fdir_filter_list;
  615. unsigned long fdir_overflow; /* number of times ATR was backed off */
  616. union ixgbe_atr_input fdir_mask;
  617. int fdir_filter_count;
  618. u32 fdir_pballoc;
  619. u32 atr_sample_rate;
  620. spinlock_t fdir_perfect_lock;
  621. #ifdef IXGBE_FCOE
  622. struct ixgbe_fcoe fcoe;
  623. #endif /* IXGBE_FCOE */
  624. u8 __iomem *io_addr; /* Mainly for iounmap use */
  625. u32 wol;
  626. u16 bridge_mode;
  627. u16 eeprom_verh;
  628. u16 eeprom_verl;
  629. u16 eeprom_cap;
  630. u32 interrupt_event;
  631. u32 led_reg;
  632. struct ptp_clock *ptp_clock;
  633. struct ptp_clock_info ptp_caps;
  634. struct work_struct ptp_tx_work;
  635. struct sk_buff *ptp_tx_skb;
  636. struct hwtstamp_config tstamp_config;
  637. unsigned long ptp_tx_start;
  638. unsigned long last_overflow_check;
  639. unsigned long last_rx_ptp_check;
  640. unsigned long last_rx_timestamp;
  641. spinlock_t tmreg_lock;
  642. struct cyclecounter cc;
  643. struct timecounter tc;
  644. u32 base_incval;
  645. /* SR-IOV */
  646. DECLARE_BITMAP(active_vfs, IXGBE_MAX_VF_FUNCTIONS);
  647. unsigned int num_vfs;
  648. struct vf_data_storage *vfinfo;
  649. int vf_rate_link_speed;
  650. struct vf_macvlans vf_mvs;
  651. struct vf_macvlans *mv_list;
  652. u32 timer_event_accumulator;
  653. u32 vferr_refcount;
  654. struct ixgbe_mac_addr *mac_table;
  655. #ifdef CONFIG_IXGBE_VXLAN
  656. u16 vxlan_port;
  657. #endif
  658. struct kobject *info_kobj;
  659. #ifdef CONFIG_IXGBE_HWMON
  660. struct hwmon_buff *ixgbe_hwmon_buff;
  661. #endif /* CONFIG_IXGBE_HWMON */
  662. #ifdef CONFIG_DEBUG_FS
  663. struct dentry *ixgbe_dbg_adapter;
  664. #endif /*CONFIG_DEBUG_FS*/
  665. u8 default_up;
  666. unsigned long fwd_bitmask; /* Bitmask indicating in use pools */
  667. /* maximum number of RETA entries among all devices supported by ixgbe
  668. * driver: currently it's x550 device in non-SRIOV mode
  669. */
  670. #define IXGBE_MAX_RETA_ENTRIES 512
  671. u8 rss_indir_tbl[IXGBE_MAX_RETA_ENTRIES];
  672. #define IXGBE_RSS_KEY_SIZE 40 /* size of RSS Hash Key in bytes */
  673. u32 rss_key[IXGBE_RSS_KEY_SIZE / sizeof(u32)];
  674. };
  675. static inline u8 ixgbe_max_rss_indices(struct ixgbe_adapter *adapter)
  676. {
  677. switch (adapter->hw.mac.type) {
  678. case ixgbe_mac_82598EB:
  679. case ixgbe_mac_82599EB:
  680. case ixgbe_mac_X540:
  681. return IXGBE_MAX_RSS_INDICES;
  682. case ixgbe_mac_X550:
  683. case ixgbe_mac_X550EM_x:
  684. return IXGBE_MAX_RSS_INDICES_X550;
  685. default:
  686. return 0;
  687. }
  688. }
  689. struct ixgbe_fdir_filter {
  690. struct hlist_node fdir_node;
  691. union ixgbe_atr_input filter;
  692. u16 sw_idx;
  693. u16 action;
  694. };
  695. enum ixgbe_state_t {
  696. __IXGBE_TESTING,
  697. __IXGBE_RESETTING,
  698. __IXGBE_DOWN,
  699. __IXGBE_DISABLED,
  700. __IXGBE_REMOVING,
  701. __IXGBE_SERVICE_SCHED,
  702. __IXGBE_SERVICE_INITED,
  703. __IXGBE_IN_SFP_INIT,
  704. __IXGBE_PTP_RUNNING,
  705. __IXGBE_PTP_TX_IN_PROGRESS,
  706. };
  707. struct ixgbe_cb {
  708. union { /* Union defining head/tail partner */
  709. struct sk_buff *head;
  710. struct sk_buff *tail;
  711. };
  712. dma_addr_t dma;
  713. u16 append_cnt;
  714. bool page_released;
  715. };
  716. #define IXGBE_CB(skb) ((struct ixgbe_cb *)(skb)->cb)
  717. enum ixgbe_boards {
  718. board_82598,
  719. board_82599,
  720. board_X540,
  721. board_X550,
  722. board_X550EM_x,
  723. };
  724. extern struct ixgbe_info ixgbe_82598_info;
  725. extern struct ixgbe_info ixgbe_82599_info;
  726. extern struct ixgbe_info ixgbe_X540_info;
  727. extern struct ixgbe_info ixgbe_X550_info;
  728. extern struct ixgbe_info ixgbe_X550EM_x_info;
  729. #ifdef CONFIG_IXGBE_DCB
  730. extern const struct dcbnl_rtnl_ops dcbnl_ops;
  731. #endif
  732. extern char ixgbe_driver_name[];
  733. extern const char ixgbe_driver_version[];
  734. #ifdef IXGBE_FCOE
  735. extern char ixgbe_default_device_descr[];
  736. #endif /* IXGBE_FCOE */
  737. void ixgbe_up(struct ixgbe_adapter *adapter);
  738. void ixgbe_down(struct ixgbe_adapter *adapter);
  739. void ixgbe_reinit_locked(struct ixgbe_adapter *adapter);
  740. void ixgbe_reset(struct ixgbe_adapter *adapter);
  741. void ixgbe_set_ethtool_ops(struct net_device *netdev);
  742. int ixgbe_setup_rx_resources(struct ixgbe_ring *);
  743. int ixgbe_setup_tx_resources(struct ixgbe_ring *);
  744. void ixgbe_free_rx_resources(struct ixgbe_ring *);
  745. void ixgbe_free_tx_resources(struct ixgbe_ring *);
  746. void ixgbe_configure_rx_ring(struct ixgbe_adapter *, struct ixgbe_ring *);
  747. void ixgbe_configure_tx_ring(struct ixgbe_adapter *, struct ixgbe_ring *);
  748. void ixgbe_disable_rx_queue(struct ixgbe_adapter *adapter, struct ixgbe_ring *);
  749. void ixgbe_update_stats(struct ixgbe_adapter *adapter);
  750. int ixgbe_init_interrupt_scheme(struct ixgbe_adapter *adapter);
  751. int ixgbe_wol_supported(struct ixgbe_adapter *adapter, u16 device_id,
  752. u16 subdevice_id);
  753. #ifdef CONFIG_PCI_IOV
  754. void ixgbe_full_sync_mac_table(struct ixgbe_adapter *adapter);
  755. #endif
  756. int ixgbe_add_mac_filter(struct ixgbe_adapter *adapter,
  757. u8 *addr, u16 queue);
  758. int ixgbe_del_mac_filter(struct ixgbe_adapter *adapter,
  759. u8 *addr, u16 queue);
  760. void ixgbe_clear_interrupt_scheme(struct ixgbe_adapter *adapter);
  761. netdev_tx_t ixgbe_xmit_frame_ring(struct sk_buff *, struct ixgbe_adapter *,
  762. struct ixgbe_ring *);
  763. void ixgbe_unmap_and_free_tx_resource(struct ixgbe_ring *,
  764. struct ixgbe_tx_buffer *);
  765. void ixgbe_alloc_rx_buffers(struct ixgbe_ring *, u16);
  766. void ixgbe_write_eitr(struct ixgbe_q_vector *);
  767. int ixgbe_poll(struct napi_struct *napi, int budget);
  768. int ethtool_ioctl(struct ifreq *ifr);
  769. s32 ixgbe_reinit_fdir_tables_82599(struct ixgbe_hw *hw);
  770. s32 ixgbe_init_fdir_signature_82599(struct ixgbe_hw *hw, u32 fdirctrl);
  771. s32 ixgbe_init_fdir_perfect_82599(struct ixgbe_hw *hw, u32 fdirctrl);
  772. s32 ixgbe_fdir_add_signature_filter_82599(struct ixgbe_hw *hw,
  773. union ixgbe_atr_hash_dword input,
  774. union ixgbe_atr_hash_dword common,
  775. u8 queue);
  776. s32 ixgbe_fdir_set_input_mask_82599(struct ixgbe_hw *hw,
  777. union ixgbe_atr_input *input_mask);
  778. s32 ixgbe_fdir_write_perfect_filter_82599(struct ixgbe_hw *hw,
  779. union ixgbe_atr_input *input,
  780. u16 soft_id, u8 queue);
  781. s32 ixgbe_fdir_erase_perfect_filter_82599(struct ixgbe_hw *hw,
  782. union ixgbe_atr_input *input,
  783. u16 soft_id);
  784. void ixgbe_atr_compute_perfect_hash_82599(union ixgbe_atr_input *input,
  785. union ixgbe_atr_input *mask);
  786. void ixgbe_set_rx_mode(struct net_device *netdev);
  787. #ifdef CONFIG_IXGBE_DCB
  788. void ixgbe_set_rx_drop_en(struct ixgbe_adapter *adapter);
  789. #endif
  790. int ixgbe_setup_tc(struct net_device *dev, u8 tc);
  791. void ixgbe_tx_ctxtdesc(struct ixgbe_ring *, u32, u32, u32, u32);
  792. void ixgbe_do_reset(struct net_device *netdev);
  793. #ifdef CONFIG_IXGBE_HWMON
  794. void ixgbe_sysfs_exit(struct ixgbe_adapter *adapter);
  795. int ixgbe_sysfs_init(struct ixgbe_adapter *adapter);
  796. #endif /* CONFIG_IXGBE_HWMON */
  797. #ifdef IXGBE_FCOE
  798. void ixgbe_configure_fcoe(struct ixgbe_adapter *adapter);
  799. int ixgbe_fso(struct ixgbe_ring *tx_ring, struct ixgbe_tx_buffer *first,
  800. u8 *hdr_len);
  801. int ixgbe_fcoe_ddp(struct ixgbe_adapter *adapter,
  802. union ixgbe_adv_rx_desc *rx_desc, struct sk_buff *skb);
  803. int ixgbe_fcoe_ddp_get(struct net_device *netdev, u16 xid,
  804. struct scatterlist *sgl, unsigned int sgc);
  805. int ixgbe_fcoe_ddp_target(struct net_device *netdev, u16 xid,
  806. struct scatterlist *sgl, unsigned int sgc);
  807. int ixgbe_fcoe_ddp_put(struct net_device *netdev, u16 xid);
  808. int ixgbe_setup_fcoe_ddp_resources(struct ixgbe_adapter *adapter);
  809. void ixgbe_free_fcoe_ddp_resources(struct ixgbe_adapter *adapter);
  810. int ixgbe_fcoe_enable(struct net_device *netdev);
  811. int ixgbe_fcoe_disable(struct net_device *netdev);
  812. #ifdef CONFIG_IXGBE_DCB
  813. u8 ixgbe_fcoe_getapp(struct ixgbe_adapter *adapter);
  814. u8 ixgbe_fcoe_setapp(struct ixgbe_adapter *adapter, u8 up);
  815. #endif /* CONFIG_IXGBE_DCB */
  816. int ixgbe_fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type);
  817. int ixgbe_fcoe_get_hbainfo(struct net_device *netdev,
  818. struct netdev_fcoe_hbainfo *info);
  819. u8 ixgbe_fcoe_get_tc(struct ixgbe_adapter *adapter);
  820. #endif /* IXGBE_FCOE */
  821. #ifdef CONFIG_DEBUG_FS
  822. void ixgbe_dbg_adapter_init(struct ixgbe_adapter *adapter);
  823. void ixgbe_dbg_adapter_exit(struct ixgbe_adapter *adapter);
  824. void ixgbe_dbg_init(void);
  825. void ixgbe_dbg_exit(void);
  826. #else
  827. static inline void ixgbe_dbg_adapter_init(struct ixgbe_adapter *adapter) {}
  828. static inline void ixgbe_dbg_adapter_exit(struct ixgbe_adapter *adapter) {}
  829. static inline void ixgbe_dbg_init(void) {}
  830. static inline void ixgbe_dbg_exit(void) {}
  831. #endif /* CONFIG_DEBUG_FS */
  832. static inline struct netdev_queue *txring_txq(const struct ixgbe_ring *ring)
  833. {
  834. return netdev_get_tx_queue(ring->netdev, ring->queue_index);
  835. }
  836. void ixgbe_ptp_init(struct ixgbe_adapter *adapter);
  837. void ixgbe_ptp_suspend(struct ixgbe_adapter *adapter);
  838. void ixgbe_ptp_stop(struct ixgbe_adapter *adapter);
  839. void ixgbe_ptp_overflow_check(struct ixgbe_adapter *adapter);
  840. void ixgbe_ptp_rx_hang(struct ixgbe_adapter *adapter);
  841. void ixgbe_ptp_rx_hwtstamp(struct ixgbe_adapter *adapter, struct sk_buff *skb);
  842. int ixgbe_ptp_set_ts_config(struct ixgbe_adapter *adapter, struct ifreq *ifr);
  843. int ixgbe_ptp_get_ts_config(struct ixgbe_adapter *adapter, struct ifreq *ifr);
  844. void ixgbe_ptp_start_cyclecounter(struct ixgbe_adapter *adapter);
  845. void ixgbe_ptp_reset(struct ixgbe_adapter *adapter);
  846. void ixgbe_ptp_check_pps_event(struct ixgbe_adapter *adapter, u32 eicr);
  847. #ifdef CONFIG_PCI_IOV
  848. void ixgbe_sriov_reinit(struct ixgbe_adapter *adapter);
  849. #endif
  850. netdev_tx_t ixgbe_xmit_frame_ring(struct sk_buff *skb,
  851. struct ixgbe_adapter *adapter,
  852. struct ixgbe_ring *tx_ring);
  853. u32 ixgbe_rss_indir_tbl_entries(struct ixgbe_adapter *adapter);
  854. void ixgbe_store_reta(struct ixgbe_adapter *adapter);
  855. #endif /* _IXGBE_H_ */