Searched refs:sr_iov (Results 1 – 4 of 4) sorted by relevance
/systemd-251/src/shared/ |
D | netif-sriov.c | 13 SRIOV *sr_iov; in sr_iov_new() local 17 sr_iov = new(SRIOV, 1); in sr_iov_new() 18 if (!sr_iov) in sr_iov_new() 21 *sr_iov = (SRIOV) { in sr_iov_new() 30 *ret = TAKE_PTR(sr_iov); in sr_iov_new() 37 _cleanup_(sr_iov_freep) SRIOV *sr_iov = NULL; in sr_iov_new_static() 56 r = sr_iov_new(&sr_iov); in sr_iov_new_static() 60 r = ordered_hashmap_ensure_put(sr_iov_by_section, &config_section_hash_ops, n, sr_iov); in sr_iov_new_static() 64 sr_iov->section = TAKE_PTR(n); in sr_iov_new_static() 65 sr_iov->sr_iov_by_section = *sr_iov_by_section; in sr_iov_new_static() [all …]
|
D | netif-sriov.h | 35 SRIOV *sr_iov_free(SRIOV *sr_iov); 36 void sr_iov_hash_func(const SRIOV *sr_iov, struct siphash *state); 38 int sr_iov_set_netlink_message(SRIOV *sr_iov, sd_netlink_message *req);
|
/systemd-251/src/network/ |
D | networkd-sriov.c | 9 … sr_iov_handler(sd_netlink *rtnl, sd_netlink_message *m, Request *req, Link *link, SRIOV *sr_iov) { in sr_iov_handler() argument 31 static int sr_iov_configure(SRIOV *sr_iov, Link *link, Request *req) { in sr_iov_configure() argument 35 assert(sr_iov); in sr_iov_configure() 42 log_link_debug(link, "Setting SR-IOV virtual function %"PRIu32".", sr_iov->vf); in sr_iov_configure() 48 r = sr_iov_set_netlink_message(sr_iov, m); in sr_iov_configure() 55 static int sr_iov_process_request(Request *req, Link *link, SRIOV *sr_iov) { in sr_iov_process_request() argument 60 assert(sr_iov); in sr_iov_process_request() 65 r = sr_iov_configure(sr_iov, link, req); in sr_iov_process_request() 69 sr_iov->vf); in sr_iov_process_request() 75 SRIOV *sr_iov; in link_request_sr_iov_vfs() local [all …]
|
/systemd-251/src/udev/net/ |
D | link-config.c | 868 static int sr_iov_configure(Link *link, sd_netlink **rtnl, SRIOV *sr_iov) { in sr_iov_configure() argument 886 r = sr_iov_set_netlink_message(sr_iov, req); in sr_iov_configure() 898 SRIOV *sr_iov; in link_apply_sr_iov_config() local 923 ORDERED_HASHMAP_FOREACH(sr_iov, link->config->sr_iov_by_section) { in link_apply_sr_iov_config() 924 if (sr_iov->vf >= n) { in link_apply_sr_iov_config() 925 … log_link_warning(link, "SR-IOV virtual function %"PRIu32" does not exist, ignoring.", sr_iov->vf); in link_apply_sr_iov_config() 929 r = sr_iov_configure(link, rtnl, sr_iov); in link_apply_sr_iov_config() 933 sr_iov->vf); in link_apply_sr_iov_config()
|