File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 23
23
#define RTL4_A_NAME "rtl4a"
24
24
25
25
#define RTL4_A_HDR_LEN 4
26
- #define RTL4_A_ETHERTYPE 0x8899
27
26
#define RTL4_A_PROTOCOL_SHIFT 12
28
27
/*
29
28
* 0x1 = Realtek Remote Control protocol (RRCP)
@@ -54,7 +53,7 @@ static struct sk_buff *rtl4a_tag_xmit(struct sk_buff *skb,
54
53
55
54
/* Set Ethertype */
56
55
p = (__be16 * )tag ;
57
- * p = htons (RTL4_A_ETHERTYPE );
56
+ * p = htons (ETH_P_REALTEK );
58
57
59
58
out = (RTL4_A_PROTOCOL_RTL8366RB << RTL4_A_PROTOCOL_SHIFT );
60
59
/* The lower bits indicate the port number */
@@ -82,7 +81,7 @@ static struct sk_buff *rtl4a_tag_rcv(struct sk_buff *skb,
82
81
tag = dsa_etype_header_pos_rx (skb );
83
82
p = (__be16 * )tag ;
84
83
etype = ntohs (* p );
85
- if (etype != RTL4_A_ETHERTYPE ) {
84
+ if (etype != ETH_P_REALTEK ) {
86
85
/* Not custom, just pass through */
87
86
netdev_dbg (dev , "non-realtek ethertype 0x%04x\n" , etype );
88
87
return skb ;
You can’t perform that action at this time.
0 commit comments