| 1699 | } |
| 1700 | |
| 1701 | static void |
| 1702 | ionic_lif_set_name(struct ionic_lif *lif) |
| 1703 | { |
| 1704 | struct ionic_admin_ctx ctx = { |
| 1705 | .pending_work = true, |
| 1706 | .cmd.lif_setattr = { |
| 1707 | .opcode = IONIC_CMD_LIF_SETATTR, |
| 1708 | .attr = IONIC_LIF_ATTR_NAME, |
| 1709 | }, |
| 1710 | }; |
| 1711 | |
| 1712 | memcpy(ctx.cmd.lif_setattr.name, lif->name, |
| 1713 | sizeof(ctx.cmd.lif_setattr.name) - 1); |
| 1714 | |
| 1715 | ionic_adminq_post_wait(lif, &ctx); |
| 1716 | } |
| 1717 | |
| 1718 | int |
| 1719 | ionic_lif_init(struct ionic_lif *lif) |
no test coverage detected