From 95d324302eeb6689627f84d49f6043cbabf88261 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 8cae791a7..3a393c508 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c @@ -318,6 +318,10 @@ static void arp_send_dst(int type, int ptype, __be32 dest_ip, return; 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