diff options
-rw-r--r-- | include/uapi/linux/ethtool.h | 1 | ||||
-rw-r--r-- | net/core/ethtool.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h index 7a364f2f3d3f..99b43056a6fe 100644 --- a/include/uapi/linux/ethtool.h +++ b/include/uapi/linux/ethtool.h | |||
@@ -212,6 +212,7 @@ struct ethtool_value { | |||
212 | enum tunable_id { | 212 | enum tunable_id { |
213 | ETHTOOL_ID_UNSPEC, | 213 | ETHTOOL_ID_UNSPEC, |
214 | ETHTOOL_RX_COPYBREAK, | 214 | ETHTOOL_RX_COPYBREAK, |
215 | ETHTOOL_TX_COPYBREAK, | ||
215 | }; | 216 | }; |
216 | 217 | ||
217 | enum tunable_type_id { | 218 | enum tunable_type_id { |
diff --git a/net/core/ethtool.c b/net/core/ethtool.c index 27e61b886520..1600aa24d36b 100644 --- a/net/core/ethtool.c +++ b/net/core/ethtool.c | |||
@@ -1625,6 +1625,7 @@ static int ethtool_tunable_valid(const struct ethtool_tunable *tuna) | |||
1625 | { | 1625 | { |
1626 | switch (tuna->id) { | 1626 | switch (tuna->id) { |
1627 | case ETHTOOL_RX_COPYBREAK: | 1627 | case ETHTOOL_RX_COPYBREAK: |
1628 | case ETHTOOL_TX_COPYBREAK: | ||
1628 | if (tuna->len != sizeof(u32) || | 1629 | if (tuna->len != sizeof(u32) || |
1629 | tuna->type_id != ETHTOOL_TUNABLE_U32) | 1630 | tuna->type_id != ETHTOOL_TUNABLE_U32) |
1630 | return -EINVAL; | 1631 | return -EINVAL; |