* [PATCH] net/tap: remove unnecessary pragma unroll
@ 2025-06-04 22:12 Stephen Hemminger
0 siblings, 0 replies; only message in thread
From: Stephen Hemminger @ 2025-06-04 22:12 UTC (permalink / raw)
To: dev; +Cc: Stephen Hemminger
Current versions of clang and BPF verifier no longer need
an explicit unroll pragma.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
| 2 --
1 file changed, 2 deletions(-)
--git a/drivers/net/tap/bpf/tap_rss.c b/drivers/net/tap/bpf/tap_rss.c
index a76f4bfcb3..6a1c3761b7 100644
--- a/drivers/net/tap/bpf/tap_rss.c
+++ b/drivers/net/tap/bpf/tap_rss.c
@@ -113,7 +113,6 @@ skip_ip6_ext(__u16 proto, const struct __sk_buff *skb, __u32 *off, int *frag)
*frag = 0;
#define MAX_EXT_HDRS 5
-#pragma unroll
for (i = 0; i < MAX_EXT_HDRS; i++) {
switch (proto) {
case IPPROTO_HOPOPTS:
@@ -164,7 +163,6 @@ parse_ipv6(const struct __sk_buff *skb, __u32 hash_type, const __u32 *key)
if (bpf_skb_load_bytes_relative(skb, off, &ip6h, sizeof(ip6h), BPF_HDR_START_NET))
return 0; /* missing IPv6 header */
-#pragma unroll
for (j = 0; j < 4; j++) {
v6_tuple.src_addr[j] = bpf_ntohl(ip6h.saddr.in6_u.u6_addr32[j]);
v6_tuple.dst_addr[j] = bpf_ntohl(ip6h.daddr.in6_u.u6_addr32[j]);
--
2.47.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-06-04 22:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-04 22:12 [PATCH] net/tap: remove unnecessary pragma unroll Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).