|
@@ -121,6 +121,7 @@ tunable_strings[__ETHTOOL_TUNABLE_COUNT][ETH_GSTRING_LEN] = {
|
|
|
[ETHTOOL_ID_UNSPEC] = "Unspec",
|
|
|
[ETHTOOL_RX_COPYBREAK] = "rx-copybreak",
|
|
|
[ETHTOOL_TX_COPYBREAK] = "tx-copybreak",
|
|
|
+ [ETHTOOL_PFC_PREVENTION_TOUT] = "pfc-prevention-tout",
|
|
|
};
|
|
|
|
|
|
static const char
|
|
@@ -2311,6 +2312,11 @@ static int ethtool_tunable_valid(const struct ethtool_tunable *tuna)
|
|
|
tuna->type_id != ETHTOOL_TUNABLE_U32)
|
|
|
return -EINVAL;
|
|
|
break;
|
|
|
+ case ETHTOOL_PFC_PREVENTION_TOUT:
|
|
|
+ if (tuna->len != sizeof(u16) ||
|
|
|
+ tuna->type_id != ETHTOOL_TUNABLE_U16)
|
|
|
+ return -EINVAL;
|
|
|
+ break;
|
|
|
default:
|
|
|
return -EINVAL;
|
|
|
}
|