b73db54750
The function dgrp_receive() in dgrp_net_ops.c is too long and can be refactored. It uses various switch statements and goto labels. I have removed a label called data and tried to extract a new function out of it called as handle_data_in_packet(). This helps to make the code more modularize and simple to read and understand. Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
dgrp_common.c | ||
dgrp_common.h | ||
dgrp_dpa_ops.c | ||
dgrp_driver.c | ||
dgrp_mon_ops.c | ||
dgrp_net_ops.c | ||
dgrp_ports_ops.c | ||
dgrp_specproc.c | ||
dgrp_sysfs.c | ||
dgrp_tty.c | ||
digirp.h | ||
drp.h | ||
Kconfig | ||
Makefile | ||
README | ||
TODO |
The user space code to work with this driver is located at https://github.com/wfp5p/dgrp-utils