| 1676 | } |
| 1677 | |
| 1678 | static int |
| 1679 | ionic_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 | |
| 1701 | static void |
| 1702 | ionic_lif_set_name(struct ionic_lif *lif) |
no test coverage detected