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

Function ionic_init_mac

dpdk/drivers/net/ionic/ionic_mac_api.c:9–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include "ionic_mac_api.h"
8
9int32_t
10ionic_init_mac(struct ionic_hw *hw)
11{
12 int err = 0;
13
14 IONIC_PRINT_CALL();
15
16 /*
17 * Set the mac type
18 */
19 ionic_set_mac_type(hw);
20
21 switch (hw->mac.type) {
22 case IONIC_MAC_CAPRI:
23 break;
24 default:
25 err = -EINVAL;
26 break;
27 }
28
29 return err;
30}
31
32int32_t
33ionic_set_mac_type(struct ionic_hw *hw)

Callers 1

eth_ionic_dev_probeFunction · 0.85

Calls 1

ionic_set_mac_typeFunction · 0.85

Tested by

no test coverage detected