Import Debian changes 1:5.4-ok1

ethtool (1:5.4-ok1) yangtze; urgency=medium

  * Build for openKylin.
This commit is contained in:
openKylinBot 2022-04-25 22:03:04 +08:00
parent 2998e39677
commit 43c24b8c08
17 changed files with 432 additions and 0 deletions

55
debian/README.Debian vendored Normal file
View File

@ -0,0 +1,55 @@
ethtool for Debian
------------------
Most settings that can be controlled through ethtool can be specified
in /etc/network/interfaces. They will then be applied to interfaces
that are brought up automatically at boot time or using the 'ifup'
command. The following settings are supported:
Link mode (--change):
link-speed <speed>
link-duplex half|full
Ethernet settings (--change):
ethernet-autoneg on|off|<mask>
ethernet-port <port>
ethernet-wol <mode> [<pass-key>]
Driver control (--change):
driver-message-level <level>
Ethernet flow control (--pause):
ethernet-pause-rx on|off
ethernet-pause-tx on|off
ethernet-pause-autoneg on|off
Protocol offload (--offload):
offload-rx on|off
offload-tx on|off
offload-sg on|off
offload-tso on|off
offload-ufo on|off
offload-gso on|off
offload-lro on|off
(etc.)
Hardware tuning (--coalesce, --ring):
hardware-irq-coalesce-adaptive-rx on|off
hardware-irq-coalesce-adaptive-tx on|off
hardware-irq-coalesce-rx-usecs <n>
hardware-irq-coalesce-rx-frames <n>
(etc.)
hardware-dma-ring-rx <size>
hardware-dma-ring-rx-mini <size>
hardware-dma-ring-rx-jumbo <size>
hardware-dma-ring-tx <size>
Example:
iface eth0 inet dhcp
link-speed 100
link-duplex full
ethernet-autoneg off
ethernet-wol s 46:65:62:69:61:6e
-- Ben Hutchings <ben@decadent.org.uk>, Sat, 4 Jun 2011 20:37:08 +0100

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
ethtool (1:5.4-ok1) yangtze; urgency=medium
* Build for openKylin.
-- openKylinBot <openKylinBot@openkylin.com> Mon, 25 Apr 2022 22:03:04 +0800

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

19
debian/control vendored Normal file
View File

@ -0,0 +1,19 @@
Source: ethtool
Section: net
Priority: optional
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Uploaders: Ben Hutchings <ben@decadent.org.uk>
Standards-Version: 4.4.1
Build-Depends: debhelper (>= 9), autoconf, automake
Rules-Requires-Root: no
Homepage: https://www.kernel.org/pub/software/network/ethtool/
Vcs-Git: https://salsa.debian.org/kernel-team/ethtool.git
Vcs-Browser: https://salsa.debian.org/kernel-team/ethtool
Package: ethtool
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: display or change Ethernet device settings
ethtool can be used to query and change settings such as speed, auto-
negotiation and checksum offload on many network devices, especially
Ethernet devices.

168
debian/copyright vendored Normal file
View File

@ -0,0 +1,168 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Source: https://www.kernel.org/pub/software/network/ethtool/
Files: *
Copyright: 1998, David S. Miller (davem@dm.cobaltmicro.com)
2001, Jeff Garzik <jgarzik@mandrakesoft.com>
2009-2013, Solarflare Communications
2013-2016, Ben Hutchings <ben@decadent.org.uk>
2016-2020, John W. Linville <linville@tuxdriver.com>
License: GPL-2
Files: amd8111e.c
Copyright: 2003, Advanced Micro Devices Inc.
License: GPL-2
Files: at76c50x-usb.c
Copyright: 2009, John W. Linville
License: GPL-2
Files: de2104x.c
Copyright: 2001, Sun Microsystems (thockin@sun.com)
License: GPL-2
Files: dsa.c fec.c
Copyright: 2018-2019, Vivien Didelot <vivien.didelot@gmail.com>
License: GPL-2
Files: e100.c e1000.c igb.c ixgb.c ixgbe.c ixgbevf.c
Copyright: 2002, 2006, 2007, 2013, Intel Corporation
License: GPL-2
Files: et131x.c
Copyright: 2012, 2013, Mark Einon
License: GPL-2
Files: ethtool-copy.h
Copyright: 1998, David S. Miller (davem@redhat.com)
2001, Jeff Garzik <jgarzik@pobox.com>
2001, 2008, Sun Microsystems (thockin@sun.com)
2002, Intel (eli.kupermann@intel.com, scott.feldman@intel.com)
License: GPL-2
Files: internal.h
Copyright: 2001, Sun Microsystems (thockin@sun.com)
2002, Intel (scott.feldman@intel.com)
License: GPL-2
Files: ethtool.8.in
Copyright: 1999, David S. Miller
2001, Sun Microsystems
2007, 2009, Free Software Foundation, Inc.
License: GPL-2
Files: ethtool.c
Copyright: 1998, David S. Miller (davem@dm.cobaltmicro.com)
2001, 2008, Sun Microsystems
2001, Jeff Garzik <jgarzik@mandrakesoft.com>
2002, 2012, Intel
2009, 2010, Solarflare Communications
2013-2016, Ben Hutchings <ben@decadent.org.uk>
License: GPL-2
Files: fec_8xx.c
Copyright: 2004, Intracom S.A.
License: GPL-2
Files: fjes.c
Copyright: 2016, Fujitsu
License: GPL-2
Files: ibm_emac.c
Copyright: 2004, 2005 Zultys Technologies
2015, IBM Corporation
License: GPL-2
Files: lan78xx.c
Copyright: 2018, Microchip Technology
License: GPL-2
Files: marvell.c
Copyright: 2004, 2006, Stephen Hemminger <shemminger@osdl.org>
License: GPL-2
Files: natsemi.c
Copyright: 2001, Sun Microsystems (thockin@sun.com)
License: GPL-2
Files: net_tstamp-copy.h
Copyright: 2008, 2009, Intel Corporation
License: GPL-2
Files: pcnet32.c
Copyright: 2004, IBM Corporation (jklewis@us.ibm.com)
License: GPL-2
Files: qsfp.c qsfp.h sff-common.c sff-common.h
Copyright: 2010, Solarflare Communications Inc.
2012, Aurelien Guillaume <aurelien@iwi.me>
2014, Cumulus networks Inc.
License: GPL-2
Files: realtek.c
Copyright: 2001, Sun Microsystems (thockin@sun.com)
License: GPL-2
Files: rxclass.c
Copyright: 2008, Sun Microsystems
License: GPL-2
Files: sfc.c sfpid.c test-cmdline.c test-common.c test-features.c
Copyright: 2010-2013, Solarflare Communications Inc.
License: GPL-2
Files: sfpdiag.c
Copyright: 2012, Aurelien Guillaume
License: GPL-2
Files: smsc.c
Copyright: 2007, SMSC
License: GPL-2
Files: stmmac.c
Copyright: 2007-2009, STMicroelectronics Ltd
License: GPL-2
Files: tg3.c
Copyright: 2005, Jeff Garzik
2005, 2011, Broadcom
License: GPL-2
Files: tse.c
Copyright: 2014, Altera Corporation
License: GPL-2
Files: vioc.c
Copyright: 2006, Fabric7 Systems, Inc
License: GPL-2
Files: vmxnet3.c
Copyright: 2015, VMware Inc.
License: GPL-2
Files: debian/*
Copyright: 2001-2005, Eric Delaunay <delaunay@debian.org>
2006-2010, Anibal Monsalve Salazar <anibal@debian.org>
2008-2020, Ben Hutchings <ben@decadent.org.uk>
License: GPL-2
License: GPL-2
This program is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation;
version 2 of the License.
.
This program is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more
details.
.
You should have received a copy of the GNU General Public
License along with this package; if not, write to the Free
Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Boston, MA 02110-1301 USA
.
On Debian systems, the full text of the GNU General Public
License version 2 can be found in the file
`/usr/share/common-licenses/GPL-2'.

1
debian/ethtool.docs vendored Normal file
View File

@ -0,0 +1 @@
AUTHORS NEWS README

14
debian/ethtool.if-pre-up vendored Normal file
View File

@ -0,0 +1,14 @@
#!/bin/sh
ETHTOOL=/sbin/ethtool
test -x $ETHTOOL || exit 0
[ "$IFACE" != "lo" ] || exit 0
# Gather together the mixed bag of settings applied with -s/--change
SETTINGS="\
${IF_ETHERNET_PORT:+ port $IF_ETHERNET_PORT}\
${IF_DRIVER_MESSAGE_LEVEL:+ msglvl $IF_DRIVER_MESSAGE_LEVEL}\
"
[ -z "$SETTINGS" ] || $ETHTOOL --change "$IFACE" $SETTINGS

55
debian/ethtool.if-up vendored Normal file
View File

@ -0,0 +1,55 @@
#!/bin/sh
ETHTOOL=/sbin/ethtool
test -x $ETHTOOL || exit 0
[ "$IFACE" != "lo" ] || exit 0
# Find settings with a given prefix and print them as they appeared in
# /etc/network/interfaces, only with the prefix removed.
# This actually prints each name and value on a separate line, but that
# doesn't matter to the shell.
gather_settings () {
set | sed -n "
/^IF_$1[A-Za-z0-9_]*=/ {
h; # hold line
s/^IF_$1//; s/=.*//; s/_/-/g; # get name without prefix
y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/; # lower-case
p;
g; # restore line
s/^[^=]*=//; s/^'\(.*\)'/\1/; # get value
p;
}"
}
# Gather together the mixed bag of settings applied with -s/--change
SETTINGS="\
${IF_LINK_SPEED:+ speed $IF_LINK_SPEED}\
${IF_LINK_DUPLEX:+ duplex $IF_LINK_DUPLEX}\
"
# WOL has an optional pass-key
set -- $IF_ETHERNET_WOL
SETTINGS="$SETTINGS${1:+ wol $1}${2:+ sopass $2}"
# Autonegotiation can be on|off or an advertising mask
case "$IF_ETHERNET_AUTONEG" in
'') ;;
on|off) SETTINGS="$SETTINGS autoneg $IF_ETHERNET_AUTONEG" ;;
*) SETTINGS="$SETTINGS autoneg on advertise $IF_ETHERNET_AUTONEG" ;;
esac
[ -z "$SETTINGS" ] || $ETHTOOL --change "$IFACE" $SETTINGS
SETTINGS="$(gather_settings ETHERNET_PAUSE_)"
[ -z "$SETTINGS" ] || $ETHTOOL --pause "$IFACE" $SETTINGS
SETTINGS="$(gather_settings HARDWARE_IRQ_COALESCE_)"
[ -z "$SETTINGS" ] || $ETHTOOL --coalesce "$IFACE" $SETTINGS
SETTINGS="$(gather_settings HARDWARE_DMA_RING_)"
[ -z "$SETTINGS" ] || $ETHTOOL --set-ring "$IFACE" $SETTINGS
SETTINGS="$(gather_settings OFFLOAD_)"
[ -z "$SETTINGS" ] || $ETHTOOL --offload "$IFACE" $SETTINGS

1
debian/ethtool.manpages vendored Normal file
View File

@ -0,0 +1 @@
ethtool.8

8
debian/gbp.conf vendored Normal file
View File

@ -0,0 +1,8 @@
# Configuration file for git-buildpackage and friends
[DEFAULT]
pristine-tar = False
# Options only affecting git-buildpackage
[buildpackage]
sign-tags = True

0
debian/patches/series vendored Normal file
View File

23
debian/rules vendored Executable file
View File

@ -0,0 +1,23 @@
#! /usr/bin/make -f
%:
dh $@
override_dh_auto_configure:
./autogen.sh
dh_auto_configure -- --sbindir=/sbin \
$(if $(filter terse,$(DEB_BUILD_OPTIONS)),,--disable-silent-rules)
override_dh_auto_install:
dh_auto_install
mkdir -p debian/ethtool/etc/network/if-pre-up.d
install debian/ethtool.if-pre-up debian/ethtool/etc/network/if-pre-up.d/ethtool
mkdir -p debian/ethtool/etc/network/if-up.d
install debian/ethtool.if-up debian/ethtool/etc/network/if-up.d/ethtool
override_dh_auto_clean:
dh_auto_clean
rm -f INSTALL Makefile.in aclocal.m4 compile configure depcomp ethtool-config.h.in install-sh missing test-driver
override_dh_installchangelogs:
dh_installchangelogs -XChangeLog

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

2
debian/source/lintian-overrides vendored Normal file
View File

@ -0,0 +1,2 @@
# Blocked by #882694
ethtool source: orig-tarball-missing-upstream-signature .*

0
debian/source/options vendored Normal file
View File

76
debian/upstream/signing-key.asc vendored Normal file
View File

@ -0,0 +1,76 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBE6Mo1cBEACcq5dOUTlef2HHRui3PXPzUCzDQPc40dg4xPfM/FhEAQhzNEmh
WXucZwR9PvteXRwgn3dm0VtwAVLM1XLRdqIHCE5K38ebrjO2GJYs2NiKJHTj3H/H
ulYdCRpJLNs59W2+Tg4tZRzZIh5OEXT7/7UHn3iJ3Urs+goU7EazE+SffR0pMcOP
fHa7Afxe7n8Fhc/Jo9tAfUTih78Qm7vFh78lVO0nuikjH9UAAeR5hzugTZyzUi7o
6ja25B3DR3cXn7SA+67xkFWzsqiRRNpO9A6PwVPP1vKU/43zo7nJnNxPn8/q6MP8
dm9Hgoa+UFDUMyUz5Ojj4EZFVPQlO9i6NAQfUG8VsOjE8P8wB8yIVjauwTD9uQgG
M3iMpwyEyHeHjchqWaBiMGPFDCXLPJD1RqcNZLtaYpdrezdIxs4doFw1K4XecQdk
moNXLvUprQWOeTVKzmQoPujZw9leIwou05GJtuhODiMo/Cbs5fwEBZcnHoM0axR3
gQ0xvLCGre/ivTE4uvLjese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ULqlt9WxrOXkpVWkzmpPGYKPhp8yu70PflnKxOVSNMgY7nd8WxkUfS8VIX4
wgFtJkm2gw+DHGW9XsSbOqatn4SbSgGNUUM84KcCEsFpsDGwDzCYnVuWkzuxYh/X
rdPjMdoytM3tABEBAAGJAh8EGAECAAkFAk6Mo1cCGwwACgkQly1b9NxhOAam3g//
YuSo/plkHWIjGfI9IIk6s9xVuR63S7tOyjP/TOeLNgvk0fmivdZLKCHEALiSwMDV
jjUGifcOKehw+hETBJkRWrNQSwC89Fq/Fyv/ZMFY144Jfoj1l3qSOHQH4WdtL1XC
qc+kqs+cNr+iewhvxt6dY4jiOeSb2R+K1cMzyLaGIndDMD9+2tljD1u200Yuqfzf
0WN0oA2wZ6jVGOWJFrmfIlrfz68gZvGuRWwSygdxf6mJcQ+mwIbfcdmcBlTle67c
QCjb9ndcV8IgzH6DqCYkz3EYU8nyrthuv5ozSrUSlfPiWuCGXHtbBYwVggGE4Xow
U4f8z/wKrQ1Zdn7jGH5e9MdlDZmiF3odbNd7plSkrIuMztptQVjj1cBA9FahXvY8
A9zYz6v1OFvkDtjk2PGRyiRLEfOFAyJWaOQVdi+EZHEMIRsyKiAfuO5umB3HNGrC
/LvbnKet6EsDYWChpuM+WZZ9c3rBvNJA4EyRAc/a87fw0v13KBKfNJMPGbZgwSh7
NcWa+qD/opeB9vtsqPjrP0oxZwYDMrfOWILprYNwEn+KWwmHPO9E98Doo5gfm+gN
hWiGvG+rUeQhWM+KOIhNDJ+VDL961D1etslvgKOi5yQRXRARtPp/EKOcDqWDPqGv
g0GpNCn9AE+6azFNrCtwFlTTNBsprRk/Gtwn6rHzV3g=
=2Kyd
-----END PGP PUBLIC KEY BLOCK-----

3
debian/watch vendored Normal file
View File

@ -0,0 +1,3 @@
version=3
opts="pgpmode=mangle, pgpsigurlmangle=s|\.xz$|.sign|, decompress, dversionmangle=s/^1://" \
https://www.kernel.org/pub/software/network/ethtool/ethtool-([1-9].*)\.tar\.xz