diff options
| author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2019-08-12 15:14:03 +0200 | 
|---|---|---|
| committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2019-08-12 15:14:03 +0200 | 
| commit | 181ae8844578d0a80f188c1d195fd6bb91bcec81 (patch) | |
| tree | bd6ebfb8eb390ea6927603ca4e33c263c82b2cd7 /tools/testing/selftests/bpf/progs/sendmsg6_prog.c | |
| parent | 8f1c748b9a7751ee1297b4880788a09f7c802eb4 (diff) | |
| parent | d45331b00ddb179e291766617259261c112db872 (diff) | |
Merge remote-tracking branch 'drm/drm-fixes' into drm-misc-fixes
Backport requested for omap dma mask fix. I'm not sure it still
requires it, but just in case. :)
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/sendmsg6_prog.c')
| -rw-r--r-- | tools/testing/selftests/bpf/progs/sendmsg6_prog.c | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/testing/selftests/bpf/progs/sendmsg6_prog.c b/tools/testing/selftests/bpf/progs/sendmsg6_prog.c index 5aeaa284fc47..a68062820410 100644 --- a/tools/testing/selftests/bpf/progs/sendmsg6_prog.c +++ b/tools/testing/selftests/bpf/progs/sendmsg6_prog.c @@ -41,8 +41,7 @@ int sendmsg_v6_prog(struct bpf_sock_addr *ctx)  	}  	/* Rewrite destination. */ -	if ((ctx->user_ip6[0] & 0xFFFF) == bpf_htons(0xFACE) && -	     ctx->user_ip6[0] >> 16 == bpf_htons(0xB00C)) { +	if (ctx->user_ip6[0] == bpf_htonl(0xFACEB00C)) {  		ctx->user_ip6[0] = bpf_htonl(DST_REWRITE_IP6_0);  		ctx->user_ip6[1] = bpf_htonl(DST_REWRITE_IP6_1);  		ctx->user_ip6[2] = bpf_htonl(DST_REWRITE_IP6_2);  | 
