]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - samples/bpf/tc_l2_redirect_user.c
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[mirror_ubuntu-zesty-kernel.git] / samples / bpf / tc_l2_redirect_user.c
index 4013c5337b912dd38fed05c15a944f1748d50487..28995a77656073721d5ea5c78eb33f9aceb66a2f 100644 (file)
@@ -60,9 +60,9 @@ int main(int argc, char **argv)
        }
 
        /* bpf_tunnel_key.remote_ipv4 expects host byte orders */
-       ret = bpf_update_elem(array_fd, &array_key, &ifindex, 0);
+       ret = bpf_map_update_elem(array_fd, &array_key, &ifindex, 0);
        if (ret) {
-               perror("bpf_update_elem");
+               perror("bpf_map_update_elem");
                goto out;
        }