Use C99 initializers for iflib function tables.

Reviewed by:	sbruno
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D15041
This commit is contained in:
Mark Johnston 2018-04-11 15:15:34 +00:00
parent 21c5f7dec5
commit fbf8b74c10
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=332409
4 changed files with 40 additions and 40 deletions

View file

@ -66,14 +66,14 @@ static int bnxt_isc_rxd_pkt_get(void *sc, if_rxd_info_t ri);
static int bnxt_intr(void *sc);
struct if_txrx bnxt_txrx = {
bnxt_isc_txd_encap,
bnxt_isc_txd_flush,
bnxt_isc_txd_credits_update,
bnxt_isc_rxd_available,
bnxt_isc_rxd_pkt_get,
bnxt_isc_rxd_refill,
bnxt_isc_rxd_flush,
bnxt_intr
.ift_txd_encap = bnxt_isc_txd_encap,
.ift_txd_flush = bnxt_isc_txd_flush,
.ift_txd_credits_update = bnxt_isc_txd_credits_update,
.ift_rxd_available = bnxt_isc_rxd_available,
.ift_rxd_pkt_get = bnxt_isc_rxd_pkt_get,
.ift_rxd_refill = bnxt_isc_rxd_refill,
.ift_rxd_flush = bnxt_isc_rxd_flush,
.ift_legacy_intr = bnxt_intr
};
/*

View file

@ -68,25 +68,25 @@ static int em_determine_rsstype(u32 pkt_info);
extern int em_intr(void *arg);
struct if_txrx em_txrx = {
em_isc_txd_encap,
em_isc_txd_flush,
em_isc_txd_credits_update,
em_isc_rxd_available,
em_isc_rxd_pkt_get,
em_isc_rxd_refill,
em_isc_rxd_flush,
em_intr
.ift_txd_encap = em_isc_txd_encap,
.ift_txd_flush = em_isc_txd_flush,
.ift_txd_credits_update = em_isc_txd_credits_update,
.ift_rxd_available = em_isc_rxd_available,
.ift_rxd_pkt_get = em_isc_rxd_pkt_get,
.ift_rxd_refill = em_isc_rxd_refill,
.ift_rxd_flush = em_isc_rxd_flush,
.ift_legacy_intr = em_intr
};
struct if_txrx lem_txrx = {
em_isc_txd_encap,
em_isc_txd_flush,
em_isc_txd_credits_update,
lem_isc_rxd_available,
lem_isc_rxd_pkt_get,
lem_isc_rxd_refill,
em_isc_rxd_flush,
em_intr
.ift_txd_encap = em_isc_txd_encap,
.ift_txd_flush = em_isc_txd_flush,
.ift_txd_credits_update = em_isc_txd_credits_update,
.ift_rxd_available = lem_isc_rxd_available,
.ift_rxd_pkt_get = lem_isc_rxd_pkt_get,
.ift_rxd_refill = lem_isc_rxd_refill,
.ift_rxd_flush = em_isc_rxd_flush,
.ift_legacy_intr = em_intr
};
extern if_shared_ctx_t em_sctx;

View file

@ -62,14 +62,14 @@ extern void igb_if_enable_intr(if_ctx_t ctx);
extern int em_intr(void *arg);
struct if_txrx igb_txrx = {
igb_isc_txd_encap,
igb_isc_txd_flush,
igb_isc_txd_credits_update,
igb_isc_rxd_available,
igb_isc_rxd_pkt_get,
igb_isc_rxd_refill,
igb_isc_rxd_flush,
em_intr
.ift_txd_encap = igb_isc_txd_encap,
.ift_txd_flush = igb_isc_txd_flush,
.ift_txd_credits_update = igb_isc_txd_credits_update,
.ift_rxd_available = igb_isc_rxd_available,
.ift_rxd_pkt_get = igb_isc_rxd_pkt_get,
.ift_rxd_refill = igb_isc_rxd_refill,
.ift_rxd_flush = igb_isc_rxd_flush,
.ift_legacy_intr = em_intr
};
extern if_shared_ctx_t em_sctx;

View file

@ -62,14 +62,14 @@ extern void ixgbe_if_enable_intr(if_ctx_t ctx);
static int ixgbe_determine_rsstype(u16 pkt_info);
struct if_txrx ixgbe_txrx = {
ixgbe_isc_txd_encap,
ixgbe_isc_txd_flush,
ixgbe_isc_txd_credits_update,
ixgbe_isc_rxd_available,
ixgbe_isc_rxd_pkt_get,
ixgbe_isc_rxd_refill,
ixgbe_isc_rxd_flush,
NULL
.ift_txd_encap = ixgbe_isc_txd_encap,
.ift_txd_flush = ixgbe_isc_txd_flush,
.ift_txd_credits_update = ixgbe_isc_txd_credits_update,
.ift_rxd_available = ixgbe_isc_rxd_available,
.ift_rxd_pkt_get = ixgbe_isc_rxd_pkt_get,
.ift_rxd_refill = ixgbe_isc_rxd_refill,
.ift_rxd_flush = ixgbe_isc_rxd_flush,
.ift_legacy_intr = NULL
};
extern if_shared_ctx_t ixgbe_sctx;