#include #include #include #include #include #include #include #include #include #include #include "libbpf.h" static inline int open_raw_sock(const char *name) { struct sockaddr_ll sll; int sock; sock = socket(PF_PACKET, SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC, htons(ETH_P_ALL)); if (sock < 0) { printf("cannot create raw socket\n"); return -1; } memset(&sll, 0, sizeof(sll)); sll.sll_family = AF_PACKET; sll.sll_ifindex = if_nametoindex(name); sll.sll_protocol = htons(ETH_P_ALL); if (bind(sock, (struct sockaddr *)&sll, sizeof(sll)) < 0) { printf("bind to %s: %s\n", name, strerror(errno)); close(sock); return -1; } return sock; } et-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2016-12-20 16:40:48 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-01-12 17:36:15 -0500
commitf1d877be65d36806c581c32b4687d4acefa55960 (patch)
treeda1ef5713607b29e7591bc3f90f03ee0eb420b90
parentef736d394e85b1bf1fd65ba5e5257b85f6c82325 (diff)
drm/amdgpu/si: load special ucode for certain MC configs
Special MC ucode is required for these memory configurations. Acked-by: Edward O'Callaghan <funfunctor@folklore1984.net> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>