aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2011-11-30 16:42:26 -0500
committerDavid S. Miller <davem@davemloft.net>2011-12-01 11:41:48 -0500
commitb536db9332cf90c4f44ca809f028645205fa89ad (patch)
treeae9cc67101fc490b3ce6fca3870ce53a859f8b24 /net/core/dev.c
parentea1f51beff4ddd0234c59a125290aeb355cf62b2 (diff)
net: net_device flags is an unsigned int
commit b00055aacdb ([NET] core: add RFC2863 operstate) changed net_device flags from unsigned short to unsigned int. Some core functions still assume its an unsigned short. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 278463e91e3a..e0c3deec59b0 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -4459,7 +4459,7 @@ static void dev_change_rx_flags(struct net_device *dev, int flags)
4459 4459
4460static int __dev_set_promiscuity(struct net_device *dev, int inc) 4460static int __dev_set_promiscuity(struct net_device *dev, int inc)
4461{ 4461{
4462 unsigned short old_flags = dev->flags; 4462 unsigned int old_flags = dev->flags;
4463 uid_t uid; 4463 uid_t uid;
4464 gid_t gid; 4464 gid_t gid;
4465 4465
@@ -4516,7 +4516,7 @@ static int __dev_set_promiscuity(struct net_device *dev, int inc)
4516 */ 4516 */
4517int dev_set_promiscuity(struct net_device *dev, int inc) 4517int dev_set_promiscuity(struct net_device *dev, int inc)
4518{ 4518{
4519 unsigned short old_flags = dev->flags; 4519 unsigned int old_flags = dev->flags;
4520 int err; 4520 int err;
4521 4521
4522 err = __dev_set_promiscuity(dev, inc); 4522 err = __dev_set_promiscuity(dev, inc);
@@ -4543,7 +4543,7 @@ EXPORT_SYMBOL(dev_set_promiscuity);
4543 4543
4544int dev_set_allmulti(struct net_device *dev, int inc) 4544int dev_set_allmulti(struct net_device *dev, int inc)
4545{ 4545{
4546 unsigned short old_flags = dev->flags; 4546 unsigned int old_flags = dev->flags;
4547 4547
4548 ASSERT_RTNL(); 4548 ASSERT_RTNL();
4549 4549
@@ -4646,7 +4646,7 @@ EXPORT_SYMBOL(dev_get_flags);
4646 4646
4647int __dev_change_flags(struct net_device *dev, unsigned int flags) 4647int __dev_change_flags(struct net_device *dev, unsigned int flags)
4648{ 4648{
4649 int old_flags = dev->flags; 4649 unsigned int old_flags = dev->flags;
4650 int ret; 4650 int ret;
4651 4651
4652 ASSERT_RTNL(); 4652 ASSERT_RTNL();
@@ -4729,10 +4729,10 @@ void __dev_notify_flags(struct net_device *dev, unsigned int old_flags)
4729 * Change settings on device based state flags. The flags are 4729 * Change settings on device based state flags. The flags are
4730 * in the userspace exported format. 4730 * in the userspace exported format.
4731 */ 4731 */
4732int dev_change_flags(struct net_device *dev, unsigned flags) 4732int dev_change_flags(struct net_device *dev, unsigned int flags)
4733{ 4733{
4734 int ret, changes; 4734 int ret;
4735 int old_flags = dev->flags; 4735 unsigned int changes, old_flags = dev->flags;
4736 4736
4737 ret = __dev_change_flags(dev, flags); 4737 ret = __dev_change_flags(dev, flags);
4738 if (ret < 0) 4738 if (ret < 0)