Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c - keep the ZC code, drop the code related to reinit net/bridge/netfilter/ebtables.c - fix build after move to net_generic Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -36,9 +36,9 @@ static inline int ethnl_strz_size(const char *s)
|
||||
|
||||
/**
|
||||
* ethnl_put_strz() - put string attribute with fixed size string
|
||||
* @skb: skb with the message
|
||||
* @attrype: attribute type
|
||||
* @s: ETH_GSTRING_LEN sized string (may not be null terminated)
|
||||
* @skb: skb with the message
|
||||
* @attrtype: attribute type
|
||||
* @s: ETH_GSTRING_LEN sized string (may not be null terminated)
|
||||
*
|
||||
* Puts an attribute with null terminated string from @s into the message.
|
||||
*
|
||||
|
||||
@@ -32,16 +32,16 @@ static int pause_prepare_data(const struct ethnl_req_info *req_base,
|
||||
if (!dev->ethtool_ops->get_pauseparam)
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
ethtool_stats_init((u64 *)&data->pausestat,
|
||||
sizeof(data->pausestat) / 8);
|
||||
|
||||
ret = ethnl_ops_begin(dev);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
dev->ethtool_ops->get_pauseparam(dev, &data->pauseparam);
|
||||
if (req_base->flags & ETHTOOL_FLAG_STATS &&
|
||||
dev->ethtool_ops->get_pause_stats) {
|
||||
ethtool_stats_init((u64 *)&data->pausestat,
|
||||
sizeof(data->pausestat) / 8);
|
||||
dev->ethtool_ops->get_pause_stats)
|
||||
dev->ethtool_ops->get_pause_stats(dev, &data->pausestat);
|
||||
}
|
||||
ethnl_ops_complete(dev);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user