Changeset 34288


Ignore:
Timestamp:
2012-11-21T18:38:11+01:00 (5 years ago)
Author:
juhosg
Message:

swconfig: make it compatible with 3.7

swconfig does not compile with 3.7 because

struct netlink_notify->pid has been renamed to
struct netlink_notify->portid

and

struct genl_info->snd_pid has been renamed to
struct genl_info->snd_portid

Use the new names and add compatibility patches
to 3.3 and 3.6.

Signed-off-by: Gabor Juhos <juhosg@…>

Location:
trunk/target/linux/generic
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/files/drivers/net/phy/swconfig.c

    r33906 r34288  
    377377        void *hdr; 
    378378 
    379         hdr = genlmsg_put(msg, info->snd_pid, info->snd_seq, &switch_fam, 
     379        hdr = genlmsg_put(msg, info->snd_portid, info->snd_seq, &switch_fam, 
    380380                        NLM_F_MULTI, SWITCH_CMD_NEW_ATTR); 
    381381        if (IS_ERR(hdr)) 
     
    799799                goto error; 
    800800 
    801         hdr = genlmsg_put(msg, info->snd_pid, info->snd_seq, &switch_fam, 
     801        hdr = genlmsg_put(msg, info->snd_portid, info->snd_seq, &switch_fam, 
    802802                        0, cmd); 
    803803        if (IS_ERR(hdr)) 
     
    884884                if (++idx <= start) 
    885885                        continue; 
    886                 if (swconfig_send_switch(skb, NETLINK_CB(cb->skb).pid, 
     886                if (swconfig_send_switch(skb, NETLINK_CB(cb->skb).portid, 
    887887                                cb->nlh->nlmsg_seq, NLM_F_MULTI, 
    888888                                dev) < 0) 
Note: See TracChangeset for help on using the changeset viewer.