Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
3cc26e36
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
6
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3cc26e36
编写于
2月 12, 2012
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/net-next
上级
d5ef8a4d
4031ae6e
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
505 addition
and
282 deletion
+505
-282
drivers/net/ethernet/intel/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe.h
+20
-9
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
+2
-2
drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c
drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c
+35
-24
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
+443
-243
include/linux/skbuff.h
include/linux/skbuff.h
+5
-4
未找到文件。
drivers/net/ethernet/intel/ixgbe/ixgbe.h
浏览文件 @
3cc26e36
...
...
@@ -190,6 +190,7 @@ struct ixgbe_rx_queue_stats {
u64
non_eop_descs
;
u64
alloc_rx_page_failed
;
u64
alloc_rx_buff_failed
;
u64
csum_err
;
};
enum
ixbge_ring_state_t
{
...
...
@@ -198,6 +199,7 @@ enum ixbge_ring_state_t {
__IXGBE_HANG_CHECK_ARMED
,
__IXGBE_RX_PS_ENABLED
,
__IXGBE_RX_RSC_ENABLED
,
__IXGBE_RX_CSUM_UDP_ZERO_ERR
,
};
#define ring_is_ps_enabled(ring) \
...
...
@@ -329,6 +331,13 @@ struct ixgbe_q_vector {
#define IXGBE_10K_ITR 400
#define IXGBE_8K_ITR 500
/* ixgbe_test_staterr - tests bits in Rx descriptor status and error fields */
static
inline
__le32
ixgbe_test_staterr
(
union
ixgbe_adv_rx_desc
*
rx_desc
,
const
u32
stat_err_bits
)
{
return
rx_desc
->
wb
.
upper
.
status_error
&
cpu_to_le32
(
stat_err_bits
);
}
static
inline
u16
ixgbe_desc_unused
(
struct
ixgbe_ring
*
ring
)
{
u16
ntc
=
ring
->
next_to_clean
;
...
...
@@ -337,11 +346,11 @@ static inline u16 ixgbe_desc_unused(struct ixgbe_ring *ring)
return
((
ntc
>
ntu
)
?
0
:
ring
->
count
)
+
ntc
-
ntu
-
1
;
}
#define IXGBE_RX_DESC
_ADV
(R, i) \
#define IXGBE_RX_DESC(R, i) \
(&(((union ixgbe_adv_rx_desc *)((R)->desc))[i]))
#define IXGBE_TX_DESC
_ADV
(R, i) \
#define IXGBE_TX_DESC(R, i) \
(&(((union ixgbe_adv_tx_desc *)((R)->desc))[i]))
#define IXGBE_TX_CTXTDESC
_ADV
(R, i) \
#define IXGBE_TX_CTXTDESC(R, i) \
(&(((struct ixgbe_adv_tx_context_desc *)((R)->desc))[i]))
#define IXGBE_MAX_JUMBO_FRAME_SIZE 16128
...
...
@@ -372,7 +381,6 @@ struct ixgbe_adapter {
* thus the additional *_CAPABLE flags.
*/
u32
flags
;
#define IXGBE_FLAG_RX_CSUM_ENABLED (u32)(1)
#define IXGBE_FLAG_MSI_CAPABLE (u32)(1 << 1)
#define IXGBE_FLAG_MSI_ENABLED (u32)(1 << 2)
#define IXGBE_FLAG_MSIX_CAPABLE (u32)(1 << 3)
...
...
@@ -535,12 +543,16 @@ enum ixbge_state_t {
__IXGBE_IN_SFP_INIT
,
};
struct
ixgbe_rsc_cb
{
struct
ixgbe_cb
{
union
{
/* Union defining head/tail partner */
struct
sk_buff
*
head
;
struct
sk_buff
*
tail
;
};
dma_addr_t
dma
;
u16
skb
_cnt
;
u16
append
_cnt
;
bool
delay_unmap
;
};
#define IXGBE_
RSC_CB(skb) ((struct ixgbe_rsc
_cb *)(skb)->cb)
#define IXGBE_
CB(skb) ((struct ixgbe
_cb *)(skb)->cb)
enum
ixgbe_boards
{
board_82598
,
...
...
@@ -614,8 +626,7 @@ extern int ixgbe_fso(struct ixgbe_ring *tx_ring, struct sk_buff *skb,
extern
void
ixgbe_cleanup_fcoe
(
struct
ixgbe_adapter
*
adapter
);
extern
int
ixgbe_fcoe_ddp
(
struct
ixgbe_adapter
*
adapter
,
union
ixgbe_adv_rx_desc
*
rx_desc
,
struct
sk_buff
*
skb
,
u32
staterr
);
struct
sk_buff
*
skb
);
extern
int
ixgbe_fcoe_ddp_get
(
struct
net_device
*
netdev
,
u16
xid
,
struct
scatterlist
*
sgl
,
unsigned
int
sgc
);
extern
int
ixgbe_fcoe_ddp_target
(
struct
net_device
*
netdev
,
u16
xid
,
...
...
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
浏览文件 @
3cc26e36
...
...
@@ -1739,7 +1739,7 @@ static u16 ixgbe_clean_test_rings(struct ixgbe_ring *rx_ring,
/* initialize next to clean and descriptor values */
rx_ntc
=
rx_ring
->
next_to_clean
;
tx_ntc
=
tx_ring
->
next_to_clean
;
rx_desc
=
IXGBE_RX_DESC
_ADV
(
rx_ring
,
rx_ntc
);
rx_desc
=
IXGBE_RX_DESC
(
rx_ring
,
rx_ntc
);
staterr
=
le32_to_cpu
(
rx_desc
->
wb
.
upper
.
status_error
);
while
(
staterr
&
IXGBE_RXD_STAT_DD
)
{
...
...
@@ -1770,7 +1770,7 @@ static u16 ixgbe_clean_test_rings(struct ixgbe_ring *rx_ring,
tx_ntc
=
0
;
/* fetch next descriptor */
rx_desc
=
IXGBE_RX_DESC
_ADV
(
rx_ring
,
rx_ntc
);
rx_desc
=
IXGBE_RX_DESC
(
rx_ring
,
rx_ntc
);
staterr
=
le32_to_cpu
(
rx_desc
->
wb
.
upper
.
status_error
);
}
...
...
drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c
浏览文件 @
3cc26e36
...
...
@@ -357,22 +357,20 @@ int ixgbe_fcoe_ddp_target(struct net_device *netdev, u16 xid,
*/
int
ixgbe_fcoe_ddp
(
struct
ixgbe_adapter
*
adapter
,
union
ixgbe_adv_rx_desc
*
rx_desc
,
struct
sk_buff
*
skb
,
u32
staterr
)
struct
sk_buff
*
skb
)
{
u16
xid
;
u32
fctl
;
u32
fceofe
,
fcerr
,
fcstat
;
int
rc
=
-
EINVAL
;
struct
ixgbe_fcoe
*
fcoe
;
struct
ixgbe_fcoe_ddp
*
ddp
;
struct
fc_frame_header
*
fh
;
struct
fcoe_crc_eof
*
crc
;
__le32
fcerr
=
ixgbe_test_staterr
(
rx_desc
,
IXGBE_RXDADV_ERR_FCERR
);
__le32
ddp_err
;
u32
fctl
;
u16
xid
;
fcerr
=
(
staterr
&
IXGBE_RXDADV_ERR_FCERR
);
fceofe
=
(
staterr
&
IXGBE_RXDADV_ERR_FCEOFE
);
if
(
fcerr
==
IXGBE_FCERR_BADCRC
)
skb_checksum_none_assert
(
skb
);
if
(
fcerr
==
cpu_to_le32
(
IXGBE_FCERR_BADCRC
))
skb
->
ip_summed
=
CHECKSUM_NONE
;
else
skb
->
ip_summed
=
CHECKSUM_UNNECESSARY
;
...
...
@@ -382,6 +380,7 @@ int ixgbe_fcoe_ddp(struct ixgbe_adapter *adapter,
else
fh
=
(
struct
fc_frame_header
*
)(
skb
->
data
+
sizeof
(
struct
fcoe_hdr
));
fctl
=
ntoh24
(
fh
->
fh_f_ctl
);
if
(
fctl
&
FC_FC_EX_CTX
)
xid
=
be16_to_cpu
(
fh
->
fh_ox_id
);
...
...
@@ -396,27 +395,39 @@ int ixgbe_fcoe_ddp(struct ixgbe_adapter *adapter,
if
(
!
ddp
->
udl
)
goto
ddp_out
;
if
(
fcerr
|
fceofe
)
ddp_err
=
ixgbe_test_staterr
(
rx_desc
,
IXGBE_RXDADV_ERR_FCEOFE
|
IXGBE_RXDADV_ERR_FCERR
);
if
(
ddp_err
)
goto
ddp_out
;
fcstat
=
(
staterr
&
IXGBE_RXDADV_STAT_FCSTAT
);
if
(
fcstat
)
{
switch
(
ixgbe_test_staterr
(
rx_desc
,
IXGBE_RXDADV_STAT_FCSTAT
))
{
/* return 0 to bypass going to ULD for DDPed data */
case
__constant_cpu_to_le32
(
IXGBE_RXDADV_STAT_FCSTAT_DDP
):
/* update length of DDPed data */
ddp
->
len
=
le32_to_cpu
(
rx_desc
->
wb
.
lower
.
hi_dword
.
rss
);
/* unmap the sg list when FCP_RSP is received */
if
(
fcstat
==
IXGBE_RXDADV_STAT_FCSTAT_FCPRSP
)
{
pci_unmap_sg
(
adapter
->
pdev
,
ddp
->
sgl
,
ddp
->
sgc
,
DMA_FROM_DEVICE
);
ddp
->
err
=
(
fcerr
|
fceofe
);
ddp
->
sgl
=
NULL
;
ddp
->
sgc
=
0
;
}
/* return 0 to bypass going to ULD for DDPed data */
if
(
fcstat
==
IXGBE_RXDADV_STAT_FCSTAT_DDP
)
rc
=
0
;
else
if
(
ddp
->
len
)
rc
=
0
;
break
;
/* unmap the sg list when FCPRSP is received */
case
__constant_cpu_to_le32
(
IXGBE_RXDADV_STAT_FCSTAT_FCPRSP
):
pci_unmap_sg
(
adapter
->
pdev
,
ddp
->
sgl
,
ddp
->
sgc
,
DMA_FROM_DEVICE
);
ddp
->
err
=
ddp_err
;
ddp
->
sgl
=
NULL
;
ddp
->
sgc
=
0
;
/* fall through */
/* if DDP length is present pass it through to ULD */
case
__constant_cpu_to_le32
(
IXGBE_RXDADV_STAT_FCSTAT_NODDP
):
/* update length of DDPed data */
ddp
->
len
=
le32_to_cpu
(
rx_desc
->
wb
.
lower
.
hi_dword
.
rss
);
if
(
ddp
->
len
)
rc
=
ddp
->
len
;
break
;
/* no match will return as an error */
case
__constant_cpu_to_le32
(
IXGBE_RXDADV_STAT_FCSTAT_NOMTCH
):
default:
break
;
}
/* In target mode, check the last data frame of the sequence.
* For DDP in target mode, data is already DDPed but the header
* indication of the last data frame ould allow is to tell if we
...
...
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
浏览文件 @
3cc26e36
此差异已折叠。
点击以展开。
include/linux/skbuff.h
浏览文件 @
3cc26e36
...
...
@@ -438,6 +438,11 @@ struct sk_buff {
#endif
int
skb_iif
;
__u32
rxhash
;
__u16
vlan_tci
;
#ifdef CONFIG_NET_SCHED
__u16
tc_index
;
/* traffic control index */
#ifdef CONFIG_NET_CLS_ACT
...
...
@@ -445,8 +450,6 @@ struct sk_buff {
#endif
#endif
__u32
rxhash
;
__u16
queue_mapping
;
kmemcheck_bitfield_begin
(
flags2
);
#ifdef CONFIG_IPV6_NDISC_NODETYPE
...
...
@@ -470,8 +473,6 @@ struct sk_buff {
__u32
dropcount
;
};
__u16
vlan_tci
;
sk_buff_data_t
transport_header
;
sk_buff_data_t
network_header
;
sk_buff_data_t
mac_header
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录