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

Function bnxt_promiscuous_disable_op

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

Source from the content-addressed store, hash-verified

1925}
1926
1927static int bnxt_promiscuous_disable_op(struct rte_eth_dev *eth_dev)
1928{
1929 struct bnxt *bp = eth_dev->data->dev_private;
1930 struct bnxt_vnic_info *vnic;
1931 uint32_t old_flags;
1932 int rc;
1933
1934 rc = is_bnxt_in_error(bp);
1935 if (rc)
1936 return rc;
1937
1938 /* Filter settings will get applied when port is started */
1939 if (!eth_dev->data->dev_started)
1940 return 0;
1941
1942 if (bp->vnic_info == NULL)
1943 return 0;
1944
1945 vnic = bnxt_get_default_vnic(bp);
1946
1947 old_flags = vnic->flags;
1948 vnic->flags &= ~BNXT_VNIC_INFO_PROMISC;
1949 rc = bnxt_hwrm_cfa_l2_set_rx_mask(bp, vnic, 0, NULL);
1950 if (rc != 0)
1951 vnic->flags = old_flags;
1952
1953 return rc;
1954}
1955
1956static int bnxt_allmulticast_enable_op(struct rte_eth_dev *eth_dev)
1957{

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