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

Function ionic_station_set

dpdk/drivers/net/ionic/ionic_lif.c:1678–1699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1676}
1677
1678static int
1679ionic_station_set(struct ionic_lif *lif)
1680{
1681 struct ionic_admin_ctx ctx = {
1682 .pending_work = true,
1683 .cmd.lif_getattr = {
1684 .opcode = IONIC_CMD_LIF_GETATTR,
1685 .attr = IONIC_LIF_ATTR_MAC,
1686 },
1687 };
1688 int err;
1689
1690 IONIC_PRINT_CALL();
1691
1692 err = ionic_adminq_post_wait(lif, &ctx);
1693 if (err)
1694 return err;
1695
1696 memcpy(lif->mac_addr, ctx.comp.lif_getattr.mac, RTE_ETHER_ADDR_LEN);
1697
1698 return 0;
1699}
1700
1701static void
1702ionic_lif_set_name(struct ionic_lif *lif)

Callers 1

ionic_lif_initFunction · 0.85

Calls 2

ionic_adminq_post_waitFunction · 0.85
memcpyFunction · 0.50

Tested by

no test coverage detected