Commit 895940ab authored by Vikram Narayanan's avatar Vikram Narayanan
Browse files

lcd/ixgbe: Retrieve stats at KLCD's end


Signed-off-by: Vikram Narayanan's avatarVikram Narayanan <vikram186@gmail.com>
parent 9c2a5d68
......@@ -1275,12 +1275,12 @@ void napi_consume_skb(struct sk_buff *skb, int budget)
}
#ifdef IOMMU_ASSIGN
LIBLCD_MSG("%s, unmap iommu page", __func__);
LIBLCD_MSG("%s, iommu unmap page", __func__);
ret = lcd_syscall_iommu_unmap_page(lcd_gva2gpa(__gva(
(unsigned long)((void*)skb->head - skbh_off))),
skb_c->skbd_ord);
if (ret)
LIBLCD_ERR("unMapping failed for packet %p",
LIBLCD_ERR("unmap iommu failed for addr %p",
__pa(skb->data));
#endif
......@@ -1305,7 +1305,6 @@ void napi_consume_skb(struct sk_buff *skb, int budget)
_request,
&_response);
#endif
printk("napi_consume_skb returns to lcd\n");
glue_remove_skbuff(skb_c);
kfree(skb_c);
......@@ -1370,7 +1369,7 @@ void consume_skb(struct sk_buff *skb)
}
#ifdef IOMMU_ASSIGN
LIBLCD_MSG("%s, unmap iommu page", __func__);
LIBLCD_MSG("%s, iommu unmap page", __func__);
ret = lcd_syscall_iommu_unmap_page(lcd_gva2gpa(__gva((unsigned long) skb->head)),
get_order(skbh_sz));
if (ret)
......@@ -2491,7 +2490,7 @@ int ndo_start_xmit_callee(struct fipc_message *_request,
skb_c->skbh_cptr = skbd_cptr;
#ifdef IOMMU_ASSIGN
LIBLCD_MSG("%s, MAP iommu page", __func__);
LIBLCD_MSG("%s, iommu map page", __func__);
ret = lcd_syscall_iommu_map_page(
lcd_gva2gpa(skbd_gva),
skbd_ord, true);
......
......@@ -2266,12 +2266,17 @@ struct rtnl_link_stats64 *ndo_get_stats64_user(struct net_device *dev,
LIBLCD_ERR("thc_ipc_call");
goto fail_ipc;
}
fipc_recv_msg_end(thc_channel_to_fipc(hidden_args->async_chnl),
stats->rx_packets += fipc_get_reg1(_response);
stats->rx_bytes += fipc_get_reg2(_response);
stats->tx_packets += fipc_get_reg3(_response);
stats->tx_bytes += fipc_get_reg4(_response);
fipc_recv_msg_end(thc_channel_to_fipc(
hidden_args->async_chnl),
_response);
lcd_exit(0);
return stats;
fail_async:
fail_ipc:
lcd_exit(0);
return stats;
}
......@@ -3085,7 +3090,7 @@ int napi_consume_skb_callee(struct fipc_message *_request,
}
napi_consume_skb(skb, budget);
printk("napi_consume_skb returns\n");
if (skb_c->tsk == current && revoke) {
lcd_cap_revoke(skb_cptr);
lcd_cap_revoke(skbh_cptr);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment