From fc393f56c2a2f3f25678e87e7e56852c64f583dd Mon Sep 17 00:00:00 2001
From: Yalu Zhang <yalu.zhang@iopsys.eu>
Date: Tue, 22 Oct 2019 11:20:03 +0200
Subject: [PATCH] Set the ARP requests generated by CPU to the highest priority

In order to make this work, a queue with "--priority 1 --map 1" must be created.
---
 net/ipv4/arp.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c
index 0fafc5e0e..4c7c59f1a 100644
--- a/net/ipv4/arp.c
+++ b/net/ipv4/arp.c
@@ -319,6 +319,10 @@ static void arp_send_dst(int type, int ptype, __be32 dest_ip,
 
 	skb->priority = 7; /* For ARP Prioritization */
 	skb_dst_set(skb, dst_clone(dst));
+	/* Set the ARP requests generated by CPU to the highest priority since it fails to do this
+	 * from the user space utilities. In order to make this work on Intel platform, a queue with
+	 * "--priority 1 --map 1" must be created. */
+	skb->priority = 7;
 	arp_xmit(skb);
 }
 
-- 
GitLab