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

Function cxgbe_init_rss

dpdk/drivers/net/cxgbe/cxgbe_main.c:673–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671}
672
673int cxgbe_init_rss(struct adapter *adap)
674{
675 unsigned int i;
676
677 if (is_pf4(adap)) {
678 int err;
679
680 err = t4_init_rss_mode(adap, adap->mbox);
681 if (err)
682 return err;
683 }
684
685 for_each_port(adap, i) {
686 struct port_info *pi = adap2pinfo(adap, i);
687
688 pi->rss = rte_zmalloc(NULL, pi->rss_size * sizeof(u16), 0);
689 if (!pi->rss)
690 return -ENOMEM;
691
692 pi->rss_hf = CXGBE_RSS_HF_ALL;
693 }
694 return 0;
695}
696
697/**
698 * Dump basic information about the adapter.

Callers 2

cxgbe_probeFunction · 0.85
cxgbevf_probeFunction · 0.85

Calls 4

is_pf4Function · 0.85
t4_init_rss_modeFunction · 0.85
adap2pinfoFunction · 0.85
rte_zmallocFunction · 0.85

Tested by

no test coverage detected