Lines 3659-3664
ena_attach(device_t pdev)
Link Here
|
3659 |
/* initialize rings basic information */ |
3659 |
/* initialize rings basic information */ |
3660 |
ena_init_io_rings(adapter); |
3660 |
ena_init_io_rings(adapter); |
3661 |
|
3661 |
|
|
|
3662 |
/* Initialize statistics */ |
3663 |
ena_alloc_counters((counter_u64_t *)&adapter->dev_stats, |
3664 |
sizeof(struct ena_stats_dev)); |
3665 |
ena_alloc_counters((counter_u64_t *)&adapter->hw_stats, |
3666 |
sizeof(struct ena_hw_stats)); |
3667 |
|
3662 |
/* setup network interface */ |
3668 |
/* setup network interface */ |
3663 |
rc = ena_setup_ifnet(pdev, adapter, &get_feat_ctx); |
3669 |
rc = ena_setup_ifnet(pdev, adapter, &get_feat_ctx); |
3664 |
if (unlikely(rc != 0)) { |
3670 |
if (unlikely(rc != 0)) { |
Lines 3680-3690
ena_attach(device_t pdev)
Link Here
|
3680 |
taskqueue_start_threads(&adapter->metrics_tq, 1, PI_NET, "%s metricsq", |
3686 |
taskqueue_start_threads(&adapter->metrics_tq, 1, PI_NET, "%s metricsq", |
3681 |
device_get_nameunit(adapter->pdev)); |
3687 |
device_get_nameunit(adapter->pdev)); |
3682 |
|
3688 |
|
3683 |
/* Initialize statistics */ |
3689 |
/* Initialize sysctls */ |
3684 |
ena_alloc_counters((counter_u64_t *)&adapter->dev_stats, |
|
|
3685 |
sizeof(struct ena_stats_dev)); |
3686 |
ena_alloc_counters((counter_u64_t *)&adapter->hw_stats, |
3687 |
sizeof(struct ena_hw_stats)); |
3688 |
ena_sysctl_add_nodes(adapter); |
3690 |
ena_sysctl_add_nodes(adapter); |
3689 |
|
3691 |
|
3690 |
#ifdef DEV_NETMAP |
3692 |
#ifdef DEV_NETMAP |