I am developing the ethernet network device driver, the steps I followed registered the device as eth1 and assigned MAC address(a0:b0,c0,d0,e0,f0), IPV4 address(192.168.10.127) to it, even can able to see the device created in /sys/class/net devices. For info, I followed all the steps to build the kernel device driver and it is generated a.ko file and loaded the driver with insmod.
When I use ifconfig eth1 up --> device open is called,ifconfig eth1 down --> device close is called,but when I ping it ping -I eth1 www.google.com(something) I can't see device transmit ndo_start_xmit callback is not triggered/called.
Can someone please guide me on how to trigger ndo_start_xmit callback/transmit the data to the ethernet network device driver?