aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/qeth_main.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2007-04-21 01:47:35 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:25:10 -0400
commiteddc9ec53be2ecdbf4efe0efd4a83052594f0ac0 (patch)
tree4a38ab4dbd9d61fdf5a5ea6ed61463e0b9e33ba7 /drivers/s390/net/qeth_main.c
parente023dd643798c4f06c16466af90b4d250e4b8bd7 (diff)
[SK_BUFF]: Introduce ip_hdr(), remove skb->nh.iph
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_main.c')
-rw-r--r--drivers/s390/net/qeth_main.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/s390/net/qeth_main.c b/drivers/s390/net/qeth_main.c
index 0ff29e0628b5..8a07d548a05a 100644
--- a/drivers/s390/net/qeth_main.c
+++ b/drivers/s390/net/qeth_main.c
@@ -3820,18 +3820,20 @@ qeth_get_priority_queue(struct qeth_card *card, struct sk_buff *skb,
3820 return card->info.is_multicast_different & 3820 return card->info.is_multicast_different &
3821 (card->qdio.no_out_queues - 1); 3821 (card->qdio.no_out_queues - 1);
3822 if (card->qdio.do_prio_queueing && (ipv == 4)) { 3822 if (card->qdio.do_prio_queueing && (ipv == 4)) {
3823 const u8 tos = ip_hdr(skb)->tos;
3824
3823 if (card->qdio.do_prio_queueing==QETH_PRIO_Q_ING_TOS){ 3825 if (card->qdio.do_prio_queueing==QETH_PRIO_Q_ING_TOS){
3824 if (skb->nh.iph->tos & IP_TOS_NOTIMPORTANT) 3826 if (tos & IP_TOS_NOTIMPORTANT)
3825 return 3; 3827 return 3;
3826 if (skb->nh.iph->tos & IP_TOS_HIGHRELIABILITY) 3828 if (tos & IP_TOS_HIGHRELIABILITY)
3827 return 2; 3829 return 2;
3828 if (skb->nh.iph->tos & IP_TOS_HIGHTHROUGHPUT) 3830 if (tos & IP_TOS_HIGHTHROUGHPUT)
3829 return 1; 3831 return 1;
3830 if (skb->nh.iph->tos & IP_TOS_LOWDELAY) 3832 if (tos & IP_TOS_LOWDELAY)
3831 return 0; 3833 return 0;
3832 } 3834 }
3833 if (card->qdio.do_prio_queueing==QETH_PRIO_Q_ING_PREC) 3835 if (card->qdio.do_prio_queueing==QETH_PRIO_Q_ING_PREC)
3834 return 3 - (skb->nh.iph->tos >> 6); 3836 return 3 - (tos >> 6);
3835 } else if (card->qdio.do_prio_queueing && (ipv == 6)) { 3837 } else if (card->qdio.do_prio_queueing && (ipv == 6)) {
3836 /* TODO: IPv6!!! */ 3838 /* TODO: IPv6!!! */
3837 } 3839 }
@@ -4041,7 +4043,8 @@ qeth_fill_header(struct qeth_card *card, struct qeth_hdr *hdr,
4041 *((u32 *) skb->dst->neighbour->primary_key); 4043 *((u32 *) skb->dst->neighbour->primary_key);
4042 } else { 4044 } else {
4043 /* fill in destination address used in ip header */ 4045 /* fill in destination address used in ip header */
4044 *((u32 *) (&hdr->hdr.l3.dest_addr[12])) = skb->nh.iph->daddr; 4046 *((u32 *)(&hdr->hdr.l3.dest_addr[12])) =
4047 ip_hdr(skb)->daddr;
4045 } 4048 }
4046 } else if (ipv == 6) { /* IPv6 or passthru */ 4049 } else if (ipv == 6) { /* IPv6 or passthru */
4047 hdr->hdr.l3.flags = qeth_get_qeth_hdr_flags6(cast_type); 4050 hdr->hdr.l3.flags = qeth_get_qeth_hdr_flags6(cast_type);