mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-03 22:44:27 -05:00 
			
		
		
		
	3.3 and 3.6 kernels do not make use of the UAPI headers, still they need to provide an up-to-date switch.h copy for swconfig to build. Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 36295
		
			
				
	
	
		
			31 lines
		
	
	
		
			1002 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			1002 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
reverted:
 | 
						|
--- a/drivers/net/phy/swconfig.c
 | 
						|
+++ b/drivers/net/phy/swconfig.c
 | 
						|
@@ -377,7 +377,7 @@ swconfig_dump_attr(struct swconfig_callb
 | 
						|
 	int id = cb->args[0];
 | 
						|
 	void *hdr;
 | 
						|
 
 | 
						|
-	hdr = genlmsg_put(msg, info->snd_portid, info->snd_seq, &switch_fam,
 | 
						|
+	hdr = genlmsg_put(msg, info->snd_pid, info->snd_seq, &switch_fam,
 | 
						|
 			NLM_F_MULTI, SWITCH_CMD_NEW_ATTR);
 | 
						|
 	if (IS_ERR(hdr))
 | 
						|
 		return -1;
 | 
						|
@@ -799,7 +799,7 @@ swconfig_get_attr(struct sk_buff *skb, s
 | 
						|
 	if (!msg)
 | 
						|
 		goto error;
 | 
						|
 
 | 
						|
-	hdr = genlmsg_put(msg, info->snd_portid, info->snd_seq, &switch_fam,
 | 
						|
+	hdr = genlmsg_put(msg, info->snd_pid, info->snd_seq, &switch_fam,
 | 
						|
 			0, cmd);
 | 
						|
 	if (IS_ERR(hdr))
 | 
						|
 		goto nla_put_failure;
 | 
						|
@@ -902,7 +902,7 @@ static int swconfig_dump_switches(struct
 | 
						|
 	list_for_each_entry(dev, &swdevs, dev_list) {
 | 
						|
 		if (++idx <= start)
 | 
						|
 			continue;
 | 
						|
-		if (swconfig_send_switch(skb, NETLINK_CB(cb->skb).portid,
 | 
						|
+		if (swconfig_send_switch(skb, NETLINK_CB(cb->skb).pid,
 | 
						|
 				cb->nlh->nlmsg_seq, NLM_F_MULTI,
 | 
						|
 				dev) < 0)
 | 
						|
 			break;
 |