Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1255a505 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

ethtool: Ethtool parameter to dynamically change tx_copybreak



Use new ethtool [sg]et_tunable() to set tx_copybread (inline threshold)

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarAmir Vadai <amirv@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent acea73d6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -212,6 +212,7 @@ struct ethtool_value {
enum tunable_id {
	ETHTOOL_ID_UNSPEC,
	ETHTOOL_RX_COPYBREAK,
	ETHTOOL_TX_COPYBREAK,
};

enum tunable_type_id {
+1 −0
Original line number Diff line number Diff line
@@ -1625,6 +1625,7 @@ static int ethtool_tunable_valid(const struct ethtool_tunable *tuna)
{
	switch (tuna->id) {
	case ETHTOOL_RX_COPYBREAK:
	case ETHTOOL_TX_COPYBREAK:
		if (tuna->len != sizeof(u32) ||
		    tuna->type_id != ETHTOOL_TUNABLE_U32)
			return -EINVAL;