Message ID | 20220826154650.615582-1-maxime.chevallier@bootlin.com |
---|---|
Headers | show |
Series | net: ipqess: introduce Qualcomm IPQESS driver | expand |
> diff --git a/net/dsa/Kconfig b/net/dsa/Kconfig > index 3eef72ce99a4..3e095041dcca 100644 > --- a/net/dsa/Kconfig > +++ b/net/dsa/Kconfig > @@ -57,6 +57,13 @@ config NET_DSA_TAG_HELLCREEK > Say Y or M if you want to enable support for tagging frames > for the Hirschmann Hellcreek TSN switches. > > +config NET_DSA_TAG_OOB > + tristate "Tag driver for Out-of-band tagging drivers" > + help > + Say Y or M if you want to enable support for tagging out-of-band. In > + that case, the MAC driver becomes responsible for sending the tag to > + the switch, outside the inband data. > + This file is sorted by the tristate text. So this new entry should come after NET_DSA_TAG_OCELOT_8021Q > @@ -9,6 +9,7 @@ obj-$(CONFIG_NET_DSA_TAG_BRCM_COMMON) += tag_brcm.o > obj-$(CONFIG_NET_DSA_TAG_DSA_COMMON) += tag_dsa.o > obj-$(CONFIG_NET_DSA_TAG_GSWIP) += tag_gswip.o > obj-$(CONFIG_NET_DSA_TAG_HELLCREEK) += tag_hellcreek.o > +obj-$(CONFIG_NET_DSA_TAG_OOB) += tag_oob.o > obj-$(CONFIG_NET_DSA_TAG_KSZ) += tag_ksz.o > obj-$(CONFIG_NET_DSA_TAG_LAN9303) += tag_lan9303.o > obj-$(CONFIG_NET_DSA_TAG_MTK) += tag_mtk.o And this should also be after NET_DSA_TAG_OCELOT_8021Q. Andrew
> +static void ipqess_get_strings(struct net_device *netdev, u32 stringset, > + u8 *data) > +{ > + u8 *p = data; > + u32 i; > + > + switch (stringset) { > + case ETH_SS_STATS: > + for (i = 0; i < ARRAY_SIZE(ipqess_stats); i++) { > + memcpy(p, ipqess_stats[i].string, > + min((size_t)ETH_GSTRING_LEN, > + strlen(ipqess_stats[i].string) + 1)); That looks pretty similar to strlcpy(). > +static int ipqess_get_settings(struct net_device *netdev, > + struct ethtool_link_ksettings *cmd) It would be traditional to have the k in the name. > +{ > + struct ipqess *ess = netdev_priv(netdev); > + > + return phylink_ethtool_ksettings_get(ess->phylink, cmd); > +} > + > +static int ipqess_set_settings(struct net_device *netdev, > + const struct ethtool_link_ksettings *cmd) > +{ Here too. Andrew