DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] nfp: restore the unlink operation
@ 2018-05-14 14:46 Aaron Conole
  2018-05-14 15:09 ` Eelco Chaudron
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Aaron Conole @ 2018-05-14 14:46 UTC (permalink / raw)
  To: stable; +Cc: Alejandro Lucero, Luca Boccassi, Eelco Chaudron, Yuanhan Liu, dev

For the stable versions of DPDK, the NFP driver's NSP user space
driver was modified to account for non-root usage.  When that
happened, commit 515933ad8385 ("nfp: allow for non-root user")
inadvertently removed the unlink() call.

Fixes: 515933ad8385 ("nfp: allow for non-root user")
Cc: Alejandro Lucero <alejandro.lucero@netronome.com>
Cc: Luca Boccassi <bluca@debian.org>
Cc: Eelco Chaudron <echaudro@redhat.com>
Cc: Yuanhan Liu <yliu@fridaylinux.org>
Signed-off-by: Aaron Conole <aconole@redhat.com>
---
 drivers/net/nfp/nfp_nfpu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/nfp/nfp_nfpu.c b/drivers/net/nfp/nfp_nfpu.c
index ae2e07220..c003640c7 100644
--- a/drivers/net/nfp/nfp_nfpu.c
+++ b/drivers/net/nfp/nfp_nfpu.c
@@ -121,5 +121,6 @@ nfpu_close(nfpu_desc_t *desc)
 	close(desc->lock);
 
 	nspu_get_lockfile_path(lockname, sizeof(lockname), desc);
+	unlink(lockname);
 	return 0;
 }
-- 
2.14.3

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-05-18 15:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-14 14:46 [dpdk-dev] [PATCH] nfp: restore the unlink operation Aaron Conole
2018-05-14 15:09 ` Eelco Chaudron
2018-05-18  8:45   ` Alejandro Lucero
2018-05-18  9:48 ` [dpdk-dev] [dpdk-stable] " Ferruh Yigit
2018-05-18 13:11   ` Aaron Conole
2018-05-18 13:22 ` [dpdk-dev] " Luca Boccassi
2018-05-18 15:57   ` Aaron Conole

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).