| Date | Wed, 11 Mar 2020 22:48:21 -0700 (PDT) | Subject | Re: [PATCH net-next 04/15] ethtool: add ethnl_parse_bitset() helper | From | David Miller <> |
| |
From: Michal Kubecek <mkubecek@suse.cz> Date: Wed, 11 Mar 2020 22:40:23 +0100 (CET)
> +int ethnl_parse_bitset(unsigned long *val, unsigned long *mask, > + unsigned int nbits, const struct nlattr *attr, > + ethnl_string_array_t names, > + struct netlink_ext_ack *extack) > +{ ... > + if (bit_val) > + set_bit(idx, val); > + if (!no_mask) > + set_bit(idx, mask);
You can certainly use non-atomic __set_bit() in this context.
|