Write some Software

In Progress Posted Feb 29, 2016 Paid on delivery
In Progress Paid on delivery

I am in need of a C library/function which will allow me to call a function (say getInterfaces is the function) It will return to me an array of structs with all relevant information about the interfaces. NOW - the important part here is that we can not use standard [url removed, login to view] for this. We have to use output from lshw and lspci -nn. As not all interfaces will be in [url removed, login to view] (we use other drivers eg: DPDK)

The function should execute the required commands and get the information and parse. No external steps can be done. All within the library/function.

So by having the output from lshw (network) and lspci -nn, an array can be built with the following struct:

(lshw) Interfcae Name (recognized ny System)

(lshw) MAC address

(lshw) Speed

(lshw) Link

(lshw) Status

(lshw) IPv4

(lshw) IPv6

(lshw) Interface Type (Phyical, Virtual, Loopback)

(lshw) Product

(lshw pci indexed to lspci -nn) Model (eg: 82576) "eg: 04:00.0 Ethernet controller [0200]: Intel Corporation I350 Gigabit Network Connection [8086:xxxx] - WE WANT the XXXX"

(lshw) Driver

(lshw) DriverVersion

(lshw) PCILocation

ifName: enp4s0f1

mac: 90e2ba9920f9

speed: 1000000000

Link: no

Status: Offline

IPv4: 42387498

IPv6: 49234239042

ifType: Physical

product: 82576 Gigabit Network Connection

model: 82576

driver: igb

driverVersion: 5.2.13.-k

pciLocation: 04:00.1

I would also like to know if each interface supports RSS, so an additional element to the struct would be added for RSS

To determine if a network interface supports RSS:

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Performance_Tuning_Guide/network-rss.html

There are some other google documents online which can help as well.

RSS Element value: true/false


Additionally you can and maybe should use:

[root@kvm ~]# ethtool -n enp6s0 rx-flow-hash udp4
Cannot get RX network flow hashing options: Operation not supported

[root@kvm ~]# ethtool -n enp6s0 rx-flow-hash tcp4
Cannot get RX network flow hashing options: Operation not supported

Adding RSSTCP and RSSUDP: true/false, as above NOT SUPPORTED would mean the interface does NOT SUPPORT RSS UDP RSS TCP

This would be done for each interface

C Programming Linux

Project ID: #9802337

About the project

3 proposals Remote project Active Feb 29, 2016

Awarded to:

adrianmielniczuk

Hi I am Senior Embedded Developer, and I Can do this for You, Price is low becouse im new on site. Regards, Adrian Mielniczuk

$70 USD in 2 days
(0 Reviews)
0.0

3 freelancers are bidding on average $103 for this job

raulbehl

Hi! This projects looks very exciting to me. It would be great if we can talk further. Please contact me. You can check my reviews to know more about me. Thanks!

$155 USD in 2 days
(4 Reviews)
2.3
proo4

Greetings I am here to let you know that i can do this for you I believe your project is a simple task for an expert Thanks

$100 USD in 3 days
(2 Reviews)
1.1
techfinity2

Dear Sir, we are pleased to inform you that we have studied all the requirements and can deliver the same to u .we already have similar work experience and have worked on similar projects in the past and can deliver More

$155 USD in 3 days
(0 Reviews)
0.0