[Openvpn-devel,07/14] Remove unused field txqueuelen from struct tuntap

Message ID 20210401131337.3684-8-arne@rfc2549.org
State Accepted
Headers show
Series Various clean up patches | expand

Commit Message

Arne Schwabe April 1, 2021, 2:13 a.m. UTC
The code uses tuntap->options.txqueuelen instead.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
---
 src/openvpn/tun.h | 3 ---
 1 file changed, 3 deletions(-)

Comments

Gert Doering April 1, 2021, 2:53 a.m. UTC | #1
Acked-by: Gert Doering <gert@greenie.muc.de>

As far as I can see, only Linux uses txqueuelen at all, and that one
still compiles with this patch applied.  Out it goes!

Your patch has been applied to the master branch.

commit 3667df1d668420374d91607685b67a0efbcee328
Author: Arne Schwabe
Date:   Thu Apr 1 15:13:30 2021 +0200

     Remove unused field txqueuelen from struct tuntap

     Signed-off-by: Arne Schwabe <arne@rfc2549.org>
     Acked-by: Gert Doering <gert@greenie.muc.de>
     Message-Id: <20210401131337.3684-8-arne@rfc2549.org>
     URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21947.html
     Signed-off-by: Gert Doering <gert@greenie.muc.de>


--
kind regards,

Gert Doering

Patch

diff --git a/src/openvpn/tun.h b/src/openvpn/tun.h
index 7e8fb7647..60ebfdcba 100644
--- a/src/openvpn/tun.h
+++ b/src/openvpn/tun.h
@@ -165,9 +165,6 @@  struct tuntap
 
     char *actual_name; /* actual name of TUN/TAP dev, usually including unit number */
 
-    /* number of TX buffers */
-    int txqueuelen;
-
     /* ifconfig parameters */
     in_addr_t local;
     in_addr_t remote_netmask;