Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
tbblgm119
lede
提交
cf7c3b39
L
lede
项目概览
tbblgm119
/
lede
与 Fork 源项目一致
从无法访问的项目Fork
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
lede
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
cf7c3b39
编写于
10月 23, 2020
作者:
A
AmadeusGhost
提交者:
GitHub
10月 23, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ramips: ralink: rename some functions (#5697)
Co-authored-by:
N
Chen Minqiang
<
ptpt52@gmail.com
>
上级
a0ff7c02
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
17 addition
and
17 deletion
+17
-17
target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_debugfs.c
...ux/ramips/files/drivers/net/ethernet/ralink/mtk_debugfs.c
+2
-2
target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c
...ux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c
+3
-3
target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.h
...ux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.h
+3
-3
target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_offload.c
...ux/ramips/files/drivers/net/ethernet/ralink/mtk_offload.c
+8
-8
target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_offload.h
...ux/ramips/files/drivers/net/ethernet/ralink/mtk_offload.h
+1
-1
未找到文件。
target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_debugfs.c
浏览文件 @
cf7c3b39
...
...
@@ -33,7 +33,7 @@ static const char *mtk_foe_packet_type_str[] = {
#define IPV4_HNAPT 0
#define IPV4_HNAT 1
#define IS_IPV4_HNAPT(x) (((x)->bfib1.pkt_type == IPV4_HNAPT) ? 1: 0)
struct
mtk_eth
*
_eth
;
st
atic
st
ruct
mtk_eth
*
_eth
;
#define es(entry) (mtk_foe_entry_state_str[entry->bfib1.state])
//#define ei(entry, end) (MTK_PPE_TBL_SZ - (int)(end - entry))
#define ei(entry, end) (MTK_PPE_ENTRY_CNT - (int)(end - entry))
...
...
@@ -99,7 +99,7 @@ static const struct file_operations mtk_ppe_debugfs_foe_fops = {
.
release
=
single_release
,
};
int
mtk
_ppe_debugfs_init
(
struct
mtk_eth
*
eth
)
int
ra
_ppe_debugfs_init
(
struct
mtk_eth
*
eth
)
{
struct
dentry
*
root
;
...
...
target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c
浏览文件 @
cf7c3b39
...
...
@@ -961,7 +961,7 @@ static int fe_poll_rx(struct napi_struct *napi, int budget,
RX_DMA_VID
(
trxd
.
rxd3
));
#ifdef CONFIG_NET_RALINK_OFFLOAD
if
(
mtk
_offload_check_rx
(
priv
,
skb
,
trxd
.
rxd4
)
==
0
)
{
if
(
ra
_offload_check_rx
(
priv
,
skb
,
trxd
.
rxd4
)
==
0
)
{
#endif
stats
->
rx_packets
++
;
stats
->
rx_bytes
+=
pktlen
;
...
...
@@ -1309,7 +1309,7 @@ static int fe_open(struct net_device *dev)
fe_int_enable
(
priv
->
soc
->
tx_int
|
priv
->
soc
->
rx_int
);
netif_start_queue
(
dev
);
#ifdef CONFIG_NET_RALINK_OFFLOAD
mtk
_ppe_probe
(
priv
);
ra
_ppe_probe
(
priv
);
#endif
return
0
;
...
...
@@ -1348,7 +1348,7 @@ static int fe_stop(struct net_device *dev)
fe_free_dma
(
priv
);
#ifdef CONFIG_NET_RALINK_OFFLOAD
mtk
_ppe_remove
(
priv
);
ra
_ppe_remove
(
priv
);
#endif
return
0
;
...
...
target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.h
浏览文件 @
cf7c3b39
...
...
@@ -519,14 +519,14 @@ static inline void *priv_netdev(struct fe_priv *priv)
return
(
char
*
)
priv
-
ALIGN
(
sizeof
(
struct
net_device
),
NETDEV_ALIGN
);
}
int
mtk
_ppe_probe
(
struct
fe_priv
*
eth
);
void
mtk
_ppe_remove
(
struct
fe_priv
*
eth
);
int
ra
_ppe_probe
(
struct
fe_priv
*
eth
);
void
ra
_ppe_remove
(
struct
fe_priv
*
eth
);
int
mtk_flow_offload
(
struct
fe_priv
*
eth
,
enum
flow_offload_type
type
,
struct
flow_offload
*
flow
,
struct
flow_offload_hw_path
*
src
,
struct
flow_offload_hw_path
*
dest
);
int
mtk
_offload_check_rx
(
struct
fe_priv
*
eth
,
struct
sk_buff
*
skb
,
u32
rxd4
);
int
ra
_offload_check_rx
(
struct
fe_priv
*
eth
,
struct
sk_buff
*
skb
,
u32
rxd4
);
#endif
/* FE_ETH_H */
target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_offload.c
浏览文件 @
cf7c3b39
...
...
@@ -301,7 +301,7 @@ static int mtk_init_foe_table(struct mtk_eth *eth)
return
0
;
}
static
int
mtk
_ppe_start
(
struct
mtk_eth
*
eth
)
static
int
ra
_ppe_start
(
struct
mtk_eth
*
eth
)
{
int
ret
;
...
...
@@ -425,7 +425,7 @@ static int mtk_ppe_busy_wait(struct mtk_eth *eth)
return
-
ETIMEDOUT
;
}
static
int
mtk
_ppe_stop
(
struct
mtk_eth
*
eth
)
static
int
ra
_ppe_stop
(
struct
mtk_eth
*
eth
)
{
u32
r1
=
0
,
r2
=
0
;
int
i
;
...
...
@@ -501,7 +501,7 @@ static void mtk_offload_keepalive(struct fe_priv *eth, unsigned int hash)
rcu_read_unlock
();
}
int
mtk
_offload_check_rx
(
struct
fe_priv
*
eth
,
struct
sk_buff
*
skb
,
u32
rxd4
)
int
ra
_offload_check_rx
(
struct
fe_priv
*
eth
,
struct
sk_buff
*
skb
,
u32
rxd4
)
{
unsigned
int
hash
;
...
...
@@ -519,22 +519,22 @@ int mtk_offload_check_rx(struct fe_priv *eth, struct sk_buff *skb, u32 rxd4)
}
}
int
mtk
_ppe_probe
(
struct
mtk_eth
*
eth
)
int
ra
_ppe_probe
(
struct
mtk_eth
*
eth
)
{
int
err
;
err
=
mtk
_ppe_start
(
eth
);
err
=
ra
_ppe_start
(
eth
);
if
(
err
)
return
err
;
err
=
mtk
_ppe_debugfs_init
(
eth
);
err
=
ra
_ppe_debugfs_init
(
eth
);
if
(
err
)
return
err
;
return
0
;
}
void
mtk
_ppe_remove
(
struct
mtk_eth
*
eth
)
void
ra
_ppe_remove
(
struct
mtk_eth
*
eth
)
{
mtk
_ppe_stop
(
eth
);
ra
_ppe_stop
(
eth
);
}
target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_offload.h
浏览文件 @
cf7c3b39
...
...
@@ -255,6 +255,6 @@ enum mtk_foe_cpu_reason {
#define MTK_PPE_TBL_SZ \
(MTK_PPE_ENTRY_CNT * sizeof(struct mtk_foe_entry))
int
mtk
_ppe_debugfs_init
(
struct
mtk_eth
*
eth
);
int
ra
_ppe_debugfs_init
(
struct
mtk_eth
*
eth
);
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录