ixl.h (51dd214c84efceda87c2ac10d34b7e3ee5b6c28f) ixl.h (b6c8f26052c7c23c4552f97a0fbff4da96284c73)
1/******************************************************************************
2
1/******************************************************************************
2
3 Copyright (c) 2013-2014, Intel Corporation
3 Copyright (c) 2013-2015, Intel Corporation
4 All rights reserved.
5
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions are met:
8
9 1. Redistributions of source code must retain the above copyright notice,
10 this list of conditions and the following disclaimer.
11

--- 191 unchanged lines hidden (view full) ---

203#define MAX_MULTICAST_ADDR 128
204
205#define IXL_BAR 3
206#define IXL_ADM_LIMIT 2
207#define IXL_TSO_SIZE 65535
208#define IXL_TX_BUF_SZ ((u32) 1514)
209#define IXL_AQ_BUF_SZ ((u32) 4096)
210#define IXL_RX_HDR 128
4 All rights reserved.
5
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions are met:
8
9 1. Redistributions of source code must retain the above copyright notice,
10 this list of conditions and the following disclaimer.
11

--- 191 unchanged lines hidden (view full) ---

203#define MAX_MULTICAST_ADDR 128
204
205#define IXL_BAR 3
206#define IXL_ADM_LIMIT 2
207#define IXL_TSO_SIZE 65535
208#define IXL_TX_BUF_SZ ((u32) 1514)
209#define IXL_AQ_BUF_SZ ((u32) 4096)
210#define IXL_RX_HDR 128
211/* Controls the length of the Admin Queue */
211#define IXL_AQ_LEN 256
212#define IXL_AQ_LEN 256
213#define IXL_AQ_LEN_MAX 1024
212#define IXL_AQ_BUFSZ 4096
213#define IXL_RX_LIMIT 512
214#define IXL_RX_ITR 0
215#define IXL_TX_ITR 1
216#define IXL_ITR_NONE 3
217#define IXL_QUEUE_EOL 0x7FF
218#define IXL_MAX_FRAME 0x2600
219#define IXL_MAX_TX_SEGS 8

--- 48 unchanged lines hidden (view full) ---

268#define IXL_TX_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx)
269#define IXL_TX_TRYLOCK(_sc) mtx_trylock(&(_sc)->mtx)
270#define IXL_TX_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->mtx, MA_OWNED)
271
272#define IXL_RX_LOCK(_sc) mtx_lock(&(_sc)->mtx)
273#define IXL_RX_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
274#define IXL_RX_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx)
275
214#define IXL_AQ_BUFSZ 4096
215#define IXL_RX_LIMIT 512
216#define IXL_RX_ITR 0
217#define IXL_TX_ITR 1
218#define IXL_ITR_NONE 3
219#define IXL_QUEUE_EOL 0x7FF
220#define IXL_MAX_FRAME 0x2600
221#define IXL_MAX_TX_SEGS 8

--- 48 unchanged lines hidden (view full) ---

270#define IXL_TX_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx)
271#define IXL_TX_TRYLOCK(_sc) mtx_trylock(&(_sc)->mtx)
272#define IXL_TX_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->mtx, MA_OWNED)
273
274#define IXL_RX_LOCK(_sc) mtx_lock(&(_sc)->mtx)
275#define IXL_RX_UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
276#define IXL_RX_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->mtx)
277
276#if __FreeBSD_version >= 1100000
278#if __FreeBSD_version >= 1100036
277#define IXL_SET_IPACKETS(vsi, count) (vsi)->ipackets = (count)
278#define IXL_SET_IERRORS(vsi, count) (vsi)->ierrors = (count)
279#define IXL_SET_OPACKETS(vsi, count) (vsi)->opackets = (count)
280#define IXL_SET_OERRORS(vsi, count) (vsi)->oerrors = (count)
281#define IXL_SET_COLLISIONS(vsi, count) /* Do nothing; collisions is always 0. */
282#define IXL_SET_IBYTES(vsi, count) (vsi)->ibytes = (count)
283#define IXL_SET_OBYTES(vsi, count) (vsi)->obytes = (count)
284#define IXL_SET_IMCASTS(vsi, count) (vsi)->imcasts = (count)

--- 179 unchanged lines hidden (view full) ---

464 u16 rx_itr_setting;
465 u16 tx_itr_setting;
466 struct ixl_queue *queues; /* head of queues */
467 bool link_active;
468 u16 seid;
469 u16 max_frame_size;
470 u32 link_speed;
471 bool link_up;
279#define IXL_SET_IPACKETS(vsi, count) (vsi)->ipackets = (count)
280#define IXL_SET_IERRORS(vsi, count) (vsi)->ierrors = (count)
281#define IXL_SET_OPACKETS(vsi, count) (vsi)->opackets = (count)
282#define IXL_SET_OERRORS(vsi, count) (vsi)->oerrors = (count)
283#define IXL_SET_COLLISIONS(vsi, count) /* Do nothing; collisions is always 0. */
284#define IXL_SET_IBYTES(vsi, count) (vsi)->ibytes = (count)
285#define IXL_SET_OBYTES(vsi, count) (vsi)->obytes = (count)
286#define IXL_SET_IMCASTS(vsi, count) (vsi)->imcasts = (count)

--- 179 unchanged lines hidden (view full) ---

466 u16 rx_itr_setting;
467 u16 tx_itr_setting;
468 struct ixl_queue *queues; /* head of queues */
469 bool link_active;
470 u16 seid;
471 u16 max_frame_size;
472 u32 link_speed;
473 bool link_up;
472 u32 fc; /* local flow ctrl setting */
473
474 /* MAC/VLAN Filter list */
475 struct ixl_ftl_head ftl;
476
477 struct i40e_aqc_vsi_properties_data info;
478
479 eventhandler_tag vlan_attach;
480 eventhandler_tag vlan_detach;

--- 131 unchanged lines hidden ---
474
475 /* MAC/VLAN Filter list */
476 struct ixl_ftl_head ftl;
477
478 struct i40e_aqc_vsi_properties_data info;
479
480 eventhandler_tag vlan_attach;
481 eventhandler_tag vlan_detach;

--- 131 unchanged lines hidden ---