MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bnxt_allmulticast_disable_op

Function bnxt_allmulticast_disable_op

dpdk/drivers/net/bnxt/bnxt_ethdev.c:1985–2012  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1983}
1984
1985static int bnxt_allmulticast_disable_op(struct rte_eth_dev *eth_dev)
1986{
1987 struct bnxt *bp = eth_dev->data->dev_private;
1988 struct bnxt_vnic_info *vnic;
1989 uint32_t old_flags;
1990 int rc;
1991
1992 rc = is_bnxt_in_error(bp);
1993 if (rc)
1994 return rc;
1995
1996 /* Filter settings will get applied when port is started */
1997 if (!eth_dev->data->dev_started)
1998 return 0;
1999
2000 if (bp->vnic_info == NULL)
2001 return 0;
2002
2003 vnic = bnxt_get_default_vnic(bp);
2004
2005 old_flags = vnic->flags;
2006 vnic->flags &= ~BNXT_VNIC_INFO_ALLMULTI;
2007 rc = bnxt_hwrm_cfa_l2_set_rx_mask(bp, vnic, 0, NULL);
2008 if (rc != 0)
2009 vnic->flags = old_flags;
2010
2011 return rc;
2012}
2013
2014/* Return bnxt_rx_queue pointer corresponding to a given rxq. */
2015static struct bnxt_rx_queue *bnxt_qid_to_rxq(struct bnxt *bp, uint16_t qid)

Callers

nothing calls this directly

Calls 3

is_bnxt_in_errorFunction · 0.85
bnxt_get_default_vnicFunction · 0.85

Tested by

no test coverage detected