Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 158378 Details for
Bug 236869
NetXen driver needs to be updated
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
driver_backports-21.patch
driver_backports-21.patch (text/plain), 2.59 KB, created by
IBM Bug Proxy
on 2007-07-02 20:35:27 UTC
(
hide
)
Description:
driver_backports-21.patch
Filename:
MIME Type:
Creator:
IBM Bug Proxy
Created:
2007-07-02 20:35:27 UTC
Size:
2.59 KB
patch
obsolete
>Netxen driver backports from 2.6 netdev tree to 2.6.21.5-rt8. >While this patch was tested against 2.6.21.5-rt8, this patch >should allow the latest mainline driver to be built against any >2.6.21 based kernel. > >Biggest changes in the driver for the backport are: >1. ip_hdr/ip_hdrlen/tcp_hdrlen macro removal >2. skb_transport_offset macro > >Signed-off-by: Vernon Mauery <vernux@us.ibm.com> > >Index: netxen-git/netxen_nic_hw.c >=================================================================== >--- netxen-git.orig/netxen_nic_hw.c >+++ netxen-git/netxen_nic_hw.c >@@ -545,20 +545,21 @@ void netxen_tso_check(struct netxen_adap > struct cmd_desc_type0 *desc, struct sk_buff *skb) > { > if (desc->mss) { >- desc->total_hdr_length = (sizeof(struct ethhdr) + >- ip_hdrlen(skb) + tcp_hdrlen(skb)); >+ desc->total_hdr_length = sizeof(struct ethhdr) + >+ ((skb->nh.iph)->ihl * sizeof(u32)) + >+ ((skb->h.th)->doff * sizeof(u32)); > netxen_set_cmd_desc_opcode(desc, TX_TCP_LSO); > } else if (skb->ip_summed == CHECKSUM_PARTIAL) { >- if (ip_hdr(skb)->protocol == IPPROTO_TCP) { >+ if (skb->nh.iph->protocol == IPPROTO_TCP) { > netxen_set_cmd_desc_opcode(desc, TX_TCP_PKT); >- } else if (ip_hdr(skb)->protocol == IPPROTO_UDP) { >+ } else if (skb->nh.iph->protocol == IPPROTO_UDP) { > netxen_set_cmd_desc_opcode(desc, TX_UDP_PKT); > } else { > return; > } > } >- desc->tcp_hdr_offset = skb_transport_offset(skb); >- desc->ip_hdr_offset = skb_network_offset(skb); >+ desc->tcp_hdr_offset = skb->h.raw - skb->data; >+ desc->ip_hdr_offset = skb->nh.raw - skb->data; > } > > int netxen_is_flash_supported(struct netxen_adapter *adapter) >Index: netxen-git/netxen_nic_main.c >=================================================================== >--- netxen-git.orig/netxen_nic_main.c >+++ netxen-git/netxen_nic_main.c >@@ -939,8 +939,9 @@ static int netxen_nic_xmit_frame(struct > if (skb_shinfo(skb)->gso_size > 0) { > > no_of_desc++; >- if ((ip_hdrlen(skb) + tcp_hdrlen(skb) + >- sizeof(struct ethhdr)) > >+ if (((skb->nh.iph)->ihl * sizeof(u32)) + >+ ((skb->h.th)->doff * sizeof(u32)) + >+ sizeof(struct ethhdr) > > (sizeof(struct cmd_desc_type0) - 2)) { > no_of_desc++; > } >@@ -1074,10 +1075,8 @@ static int netxen_nic_xmit_frame(struct > /* copy the next 64 bytes - should be enough except > * for pathological case > */ >- skb_copy_from_linear_data_offset(skb, first_hdr_len, >- hwdesc, >- (hdr_len - >- first_hdr_len)); >+ memcpy((void *)hwdesc, (void *)(skb->data) + >+ first_hdr_len, hdr_len - first_hdr_len); > producer = get_next_index(producer, max_tx_desc_count); > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 236869
:
158374
| 158378 |
158823
|
234421
|
234431