100-cleanup.patch 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --- a/src/vectoring/ifxmips_vectoring.c
  2. +++ b/src/vectoring/ifxmips_vectoring.c
  3. @@ -325,7 +325,7 @@ static int proc_write_dbg(struct file *f
  4. else
  5. printk(dbg_enable_mask_str[i] + 1);
  6. }
  7. - printk("] > /proc/vectoring\n");
  8. + printk("] > /proc/driver/vectoring\n");
  9. }
  10. if ( f_enable )
  11. @@ -433,11 +433,10 @@ static int __init vectoring_init(void)
  12. {
  13. struct proc_dir_entry *res;
  14. - res = proc_create("vectoring",
  15. + res = proc_create("driver/vectoring",
  16. S_IRUGO|S_IWUSR,
  17. 0,
  18. &g_proc_file_vectoring_dbg_seq_fops);
  19. - printk("res = %p\n", res);
  20. register_netdev_event_handler();
  21. g_ptm_net_dev = dev_get_by_name(&init_net, "ptm0");
  22. @@ -460,7 +459,7 @@ static void __exit vectoring_exit(void)
  23. unregister_netdev_event_handler();
  24. - remove_proc_entry("vectoring", NULL);
  25. + remove_proc_entry("driver/vectoring", NULL);
  26. }
  27. module_init(vectoring_init);
  28. --- a/src/vectoring/ifxmips_vectoring_test.c
  29. +++ b/src/vectoring/ifxmips_vectoring_test.c
  30. @@ -79,7 +79,7 @@ static int proc_write_vectoring(struct f
  31. }
  32. }
  33. else
  34. - printk("echo send <size> > /proc/eth/vectoring\n");
  35. + printk("echo send <size> > /proc/driver/vectoring_test\n");
  36. return count;
  37. }
  38. @@ -112,9 +112,7 @@ static __init void proc_file_create(void
  39. {
  40. struct proc_dir_entry *res;
  41. -// g_proc_dir = proc_mkdir("eth", NULL);
  42. -
  43. - res = proc_create("eth/vectoring",
  44. + res = proc_create("driver/vectoring_test",
  45. S_IRUGO|S_IWUSR,
  46. g_proc_dir,
  47. &g_proc_file_vectoring_seq_fops);
  48. @@ -122,10 +120,7 @@ static __init void proc_file_create(void
  49. static __exit void proc_file_delete(void)
  50. {
  51. - remove_proc_entry("vectoring",
  52. - g_proc_dir);
  53. -
  54. - remove_proc_entry("eth", NULL);
  55. + remove_proc_entry("driver/vectoring_test", NULL);
  56. }
  57. @@ -151,3 +146,5 @@ static void __exit vectoring_test_exit(v
  58. module_init(vectoring_test_init);
  59. module_exit(vectoring_test_exit);
  60. +
  61. +MODULE_LICENSE("GPL");