Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ed22e2f6
Commit
ed22e2f6
authored
Jul 03, 2017
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s2io: Remove UFO support.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
6093ec2d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
45 deletions
+0
-45
drivers/net/ethernet/neterion/s2io.c
drivers/net/ethernet/neterion/s2io.c
+0
-45
No files found.
drivers/net/ethernet/neterion/s2io.c
View file @
ed22e2f6
...
@@ -42,8 +42,6 @@
...
@@ -42,8 +42,6 @@
* aggregated as a single large packet
* aggregated as a single large packet
* napi: This parameter used to enable/disable NAPI (polling Rx)
* napi: This parameter used to enable/disable NAPI (polling Rx)
* Possible values '1' for enable and '0' for disable. Default is '1'
* Possible values '1' for enable and '0' for disable. Default is '1'
* ufo: This parameter used to enable/disable UDP Fragmentation Offload(UFO)
* Possible values '1' for enable and '0' for disable. Default is '0'
* vlan_tag_strip: This can be used to enable or disable vlan stripping.
* vlan_tag_strip: This can be used to enable or disable vlan stripping.
* Possible values '1' for enable , '0' for disable.
* Possible values '1' for enable , '0' for disable.
* Default is '2' - which means disable in promisc mode
* Default is '2' - which means disable in promisc mode
...
@@ -453,7 +451,6 @@ S2IO_PARM_INT(lro_max_pkts, 0xFFFF);
...
@@ -453,7 +451,6 @@ S2IO_PARM_INT(lro_max_pkts, 0xFFFF);
S2IO_PARM_INT
(
indicate_max_pkts
,
0
);
S2IO_PARM_INT
(
indicate_max_pkts
,
0
);
S2IO_PARM_INT
(
napi
,
1
);
S2IO_PARM_INT
(
napi
,
1
);
S2IO_PARM_INT
(
ufo
,
0
);
S2IO_PARM_INT
(
vlan_tag_strip
,
NO_STRIP_IN_PROMISC
);
S2IO_PARM_INT
(
vlan_tag_strip
,
NO_STRIP_IN_PROMISC
);
static
unsigned
int
tx_fifo_len
[
MAX_TX_FIFOS
]
=
static
unsigned
int
tx_fifo_len
[
MAX_TX_FIFOS
]
=
...
@@ -4128,32 +4125,6 @@ static netdev_tx_t s2io_xmit(struct sk_buff *skb, struct net_device *dev)
...
@@ -4128,32 +4125,6 @@ static netdev_tx_t s2io_xmit(struct sk_buff *skb, struct net_device *dev)
}
}
frg_len
=
skb_headlen
(
skb
);
frg_len
=
skb_headlen
(
skb
);
if
(
offload_type
==
SKB_GSO_UDP
)
{
int
ufo_size
;
ufo_size
=
s2io_udp_mss
(
skb
);
ufo_size
&=
~
7
;
txdp
->
Control_1
|=
TXD_UFO_EN
;
txdp
->
Control_1
|=
TXD_UFO_MSS
(
ufo_size
);
txdp
->
Control_1
|=
TXD_BUFFER0_SIZE
(
8
);
#ifdef __BIG_ENDIAN
/* both variants do cpu_to_be64(be32_to_cpu(...)) */
fifo
->
ufo_in_band_v
[
put_off
]
=
(
__force
u64
)
skb_shinfo
(
skb
)
->
ip6_frag_id
;
#else
fifo
->
ufo_in_band_v
[
put_off
]
=
(
__force
u64
)
skb_shinfo
(
skb
)
->
ip6_frag_id
<<
32
;
#endif
txdp
->
Host_Control
=
(
unsigned
long
)
fifo
->
ufo_in_band_v
;
txdp
->
Buffer_Pointer
=
pci_map_single
(
sp
->
pdev
,
fifo
->
ufo_in_band_v
,
sizeof
(
u64
),
PCI_DMA_TODEVICE
);
if
(
pci_dma_mapping_error
(
sp
->
pdev
,
txdp
->
Buffer_Pointer
))
goto
pci_map_failed
;
txdp
++
;
}
txdp
->
Buffer_Pointer
=
pci_map_single
(
sp
->
pdev
,
skb
->
data
,
txdp
->
Buffer_Pointer
=
pci_map_single
(
sp
->
pdev
,
skb
->
data
,
frg_len
,
PCI_DMA_TODEVICE
);
frg_len
,
PCI_DMA_TODEVICE
);
if
(
pci_dma_mapping_error
(
sp
->
pdev
,
txdp
->
Buffer_Pointer
))
if
(
pci_dma_mapping_error
(
sp
->
pdev
,
txdp
->
Buffer_Pointer
))
...
@@ -4161,8 +4132,6 @@ static netdev_tx_t s2io_xmit(struct sk_buff *skb, struct net_device *dev)
...
@@ -4161,8 +4132,6 @@ static netdev_tx_t s2io_xmit(struct sk_buff *skb, struct net_device *dev)
txdp
->
Host_Control
=
(
unsigned
long
)
skb
;
txdp
->
Host_Control
=
(
unsigned
long
)
skb
;
txdp
->
Control_1
|=
TXD_BUFFER0_SIZE
(
frg_len
);
txdp
->
Control_1
|=
TXD_BUFFER0_SIZE
(
frg_len
);
if
(
offload_type
==
SKB_GSO_UDP
)
txdp
->
Control_1
|=
TXD_UFO_EN
;
frg_cnt
=
skb_shinfo
(
skb
)
->
nr_frags
;
frg_cnt
=
skb_shinfo
(
skb
)
->
nr_frags
;
/* For fragmented SKB. */
/* For fragmented SKB. */
...
@@ -4177,14 +4146,9 @@ static netdev_tx_t s2io_xmit(struct sk_buff *skb, struct net_device *dev)
...
@@ -4177,14 +4146,9 @@ static netdev_tx_t s2io_xmit(struct sk_buff *skb, struct net_device *dev)
skb_frag_size
(
frag
),
skb_frag_size
(
frag
),
DMA_TO_DEVICE
);
DMA_TO_DEVICE
);
txdp
->
Control_1
=
TXD_BUFFER0_SIZE
(
skb_frag_size
(
frag
));
txdp
->
Control_1
=
TXD_BUFFER0_SIZE
(
skb_frag_size
(
frag
));
if
(
offload_type
==
SKB_GSO_UDP
)
txdp
->
Control_1
|=
TXD_UFO_EN
;
}
}
txdp
->
Control_1
|=
TXD_GATHER_CODE_LAST
;
txdp
->
Control_1
|=
TXD_GATHER_CODE_LAST
;
if
(
offload_type
==
SKB_GSO_UDP
)
frg_cnt
++
;
/* as Txd0 was used for inband header */
tx_fifo
=
mac_control
->
tx_FIFO_start
[
queue
];
tx_fifo
=
mac_control
->
tx_FIFO_start
[
queue
];
val64
=
fifo
->
list_info
[
put_off
].
list_phy_addr
;
val64
=
fifo
->
list_info
[
put_off
].
list_phy_addr
;
writeq
(
val64
,
&
tx_fifo
->
TxDL_Pointer
);
writeq
(
val64
,
&
tx_fifo
->
TxDL_Pointer
);
...
@@ -7910,11 +7874,6 @@ s2io_init_nic(struct pci_dev *pdev, const struct pci_device_id *pre)
...
@@ -7910,11 +7874,6 @@ s2io_init_nic(struct pci_dev *pdev, const struct pci_device_id *pre)
NETIF_F_RXCSUM
|
NETIF_F_LRO
;
NETIF_F_RXCSUM
|
NETIF_F_LRO
;
dev
->
features
|=
dev
->
hw_features
|
dev
->
features
|=
dev
->
hw_features
|
NETIF_F_HW_VLAN_CTAG_TX
|
NETIF_F_HW_VLAN_CTAG_RX
;
NETIF_F_HW_VLAN_CTAG_TX
|
NETIF_F_HW_VLAN_CTAG_RX
;
if
(
sp
->
device_type
&
XFRAME_II_DEVICE
)
{
dev
->
hw_features
|=
NETIF_F_UFO
;
if
(
ufo
)
dev
->
features
|=
NETIF_F_UFO
;
}
if
(
sp
->
high_dma_flag
==
true
)
if
(
sp
->
high_dma_flag
==
true
)
dev
->
features
|=
NETIF_F_HIGHDMA
;
dev
->
features
|=
NETIF_F_HIGHDMA
;
dev
->
watchdog_timeo
=
WATCH_DOG_TIMEOUT
;
dev
->
watchdog_timeo
=
WATCH_DOG_TIMEOUT
;
...
@@ -8147,10 +8106,6 @@ s2io_init_nic(struct pci_dev *pdev, const struct pci_device_id *pre)
...
@@ -8147,10 +8106,6 @@ s2io_init_nic(struct pci_dev *pdev, const struct pci_device_id *pre)
DBG_PRINT
(
ERR_DBG
,
"%s: Large receive offload enabled
\n
"
,
DBG_PRINT
(
ERR_DBG
,
"%s: Large receive offload enabled
\n
"
,
dev
->
name
);
dev
->
name
);
if
(
ufo
)
DBG_PRINT
(
ERR_DBG
,
"%s: UDP Fragmentation Offload(UFO) enabled
\n
"
,
dev
->
name
);
/* Initialize device name */
/* Initialize device name */
snprintf
(
sp
->
name
,
sizeof
(
sp
->
name
),
"%s Neterion %s"
,
dev
->
name
,
snprintf
(
sp
->
name
,
sizeof
(
sp
->
name
),
"%s Neterion %s"
,
dev
->
name
,
sp
->
product_name
);
sp
->
product_name
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment